P
Paul
I'm trying to use the Shell command to open an MS Excel .xlm file, and also
run a macro as soon as that file opens. The file I'm trying to open is
M:\Leasing-And-Design\Masters\Programs\Program3.xlm
The macro I'd like to run as soon as that file opens is:
Open.Program__o
In an effort to accomplish this, I've tried the following:
Shell "Excel.exe "
'M:\Leasing-And-Design\Masters\Programs\Program3.xlm'!Open.Program__o",
vbMaximizedFocus
That line above does manage to open Excel, but it doesn't work. Instead,
it displays an error message saying that Excel can't find the file. I'm
reasonably sure the problem is with the syntax in the quote marks. Can
anyone tell me how I can modify the Shell command so that it will open file
and run the macro as soon as it opens?
Thanks in advance,
Paul
run a macro as soon as that file opens. The file I'm trying to open is
M:\Leasing-And-Design\Masters\Programs\Program3.xlm
The macro I'd like to run as soon as that file opens is:
Open.Program__o
In an effort to accomplish this, I've tried the following:
Shell "Excel.exe "
'M:\Leasing-And-Design\Masters\Programs\Program3.xlm'!Open.Program__o",
vbMaximizedFocus
That line above does manage to open Excel, but it doesn't work. Instead,
it displays an error message saying that Excel can't find the file. I'm
reasonably sure the problem is with the syntax in the quote marks. Can
anyone tell me how I can modify the Shell command so that it will open file
and run the macro as soon as it opens?
Thanks in advance,
Paul