Clearing Excel Cells

Clearing Excel Cells

Postby Jeff Barnes » Fri Jun 27, 2008 5:51 pm

Hi Everybody,

Does anyone know the command to select a range of cells and completely clear that range.

I need to be able to remove the data in the cells and any formatting including the lines around the cell and any shading.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby nageswaragunupudi » Sat Jun 28, 2008 7:15 am

oSheet:Range( <spec> ):Select()
oExcel:Selection:ClearContents()
oExcel:Selection:ClearFormats()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Jeff Barnes » Mon Jun 30, 2008 1:20 am

Thanks Nageswaragunupudi.

Exactly what I needed.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests