Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi ya'll
I have a sheet with a Import External Data from Access query on it. I am trying to programatically clear it with the following code: Cells.Select Selection.ClearContents Selection.QueryTable.Delete Range("A1").Select When I do it manually it works and the query is removed from the sheet, but in the VBA module it does not remove the query. Am I doing something wrong or can someone help me with this problem? Thanks in advance regards Sean |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
ClearContents method on a passed range | New Users to Excel | |||
Clearcontents | Excel Programming | |||
Clearcontents | Excel Programming | |||
Error of ClearContents | Excel Programming |