Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm using VB to open each file in a certain directory, copy info from each into a file and then closing the opened file before looping to the next file. Everything works fine except that I cannot figure out the correct syntax to reactivate (or get the focus on) each file after copying from it. The variable name is MyFile defined as: MyFile = Dir("F:\common\budget\import\" & "*.xls") I've tried: Windows("myfile.xls").Activate Windows("myfile").Activate Myfile.Activate etc. without any luck. Help greatly appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
pass variable from one workbook to another | Excel Discussion (Misc queries) | |||
Vlookup using a variable for the workbook name | Excel Discussion (Misc queries) | |||
Can not set WorkBook variable | Excel Discussion (Misc queries) | |||
Activating a worksheet through use of a variable | Excel Worksheet Functions | |||
Activating a workbook help | Excel Programming |