Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For clarity...
[A] MyArr contains sheetnames: The With block requires a fully qualified ref to an object... With Sheets(MyArr(i)) ...otherwise your code implicitly refs the active sheet. [b] Setting a ref to an object requires its properties be ref'd via a 'dot'... With Sheets(MyArr(i)) .Cells... -OR- With Sheets(MyArr(i)).Cells .Find... ...since what you're actually doing is searching the Cells collection of each sheet. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
modifying code troubles | Excel Programming | |||
COM Add-in Troubles | Excel Discussion (Misc queries) | |||
IF troubles | Excel Worksheet Functions | |||
Code Troubles | Excel Programming | |||
Troubles opening a CSV file from code | Excel Programming |