Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 97 clearcontents method fails
I have a spreadsheet written in 2003 with the following code
destcell.clearcontents Where destcell is a valid range (consisting of a single cell). This fails when running under excel 97. I've tried destcell.clear but this fails as well. Anybody recognise this behaviour? Anybody know where I can find useful resources on what has changed? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 97 clearcontents method fails
Is the destcell a locked cell on a protected worksheet?
Is the destcell part of a merged cell? destcell.value = "" may work in any version Peter wrote: I have a spreadsheet written in 2003 with the following code destcell.clearcontents Where destcell is a valid range (consisting of a single cell). This fails when running under excel 97. I've tried destcell.clear but this fails as well. Anybody recognise this behaviour? Anybody know where I can find useful resources on what has changed? -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 97 clearcontents method fails
Clearcontents works very well in xl97, so I think you have to look for
another cause. If you are running this from a commandbutton, possibly you are running into the focus issue associated with xl97 and activex controls from the control toolbox toolbar. In that case, try changin the takefocusonclick property of the commandbutton to false. -- Regards, Tom Ogilvy "Peter" wrote: I have a spreadsheet written in 2003 with the following code destcell.clearcontents Where destcell is a valid range (consisting of a single cell). This fails when running under excel 97. I've tried destcell.clear but this fails as well. Anybody recognise this behaviour? Anybody know where I can find useful resources on what has changed? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Method 'SaveAs' fails | Excel Programming | |||
Activate method of Worksheet class fails in Excel 2000 | Excel Discussion (Misc queries) | |||
ClearContents method on a passed range | New Users to Excel | |||
Excel 2002 SP2 VBA 6.3 'RefersTo' Method fails | Excel Programming | |||
Open method of workbooks fails when Excel is hosted in IE | Excel Programming |