J
Joe
Hello All,
I am using VB to call a particular SUB of different files.
I have the following code working fine. I need help to modify the 4th
line to make it dynamic.
'***********************************
Workbooks.Open (FullFolder)
Workbooks(FileName).Activate
ActiveWorkbook.Worksheets("Blank").Activate
Application.Run "Feature_Compare_VB.xls!ShowForm"
'***********************************
FullFolder is the Full address of the destination file.
FileName is the Name of the Destination File.
ShowForm is the common SUB that I have in all my destination files.
I want to modify the 4th line to something like this... (use the
variable FileName instead of explicitly specifying the file name.
Application.Run FileName & "!ShowForm"
Thanks
Joe
I am using VB to call a particular SUB of different files.
I have the following code working fine. I need help to modify the 4th
line to make it dynamic.
'***********************************
Workbooks.Open (FullFolder)
Workbooks(FileName).Activate
ActiveWorkbook.Worksheets("Blank").Activate
Application.Run "Feature_Compare_VB.xls!ShowForm"
'***********************************
FullFolder is the Full address of the destination file.
FileName is the Name of the Destination File.
ShowForm is the common SUB that I have in all my destination files.
I want to modify the 4th line to something like this... (use the
variable FileName instead of explicitly specifying the file name.
Application.Run FileName & "!ShowForm"
Thanks
Joe
