Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have in 2 different macro the exactly same program to open a file. But in the first one, it is working and in the second one, the program stop after have opened the file.... He just stop as if there is an exit sub after my row.... In the exemple behind, the program does not do the 3rd line.... I am completly lost.... Thanks for any help Public Sub openfillratio() ChDir "H:\Charras" Workbooks.Open Filename:="H:\Charras\Fill Ratio.xls" Windows("temporaire.xls").Activate End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are you using a shortcut key to start either of the macros? Is so, does the
shortcut key include the shift key as part of the shortcut combination. If so, change it so it doesn't require the shift key. -- Regards, Tom Ogilvy "ben.c" wrote in message ... Hi, I have in 2 different macro the exactly same program to open a file. But in the first one, it is working and in the second one, the program stop after have opened the file.... He just stop as if there is an exit sub after my row.... In the exemple behind, the program does not do the 3rd line.... I am completly lost.... Thanks for any help Public Sub openfillratio() ChDir "H:\Charras" Workbooks.Open Filename:="H:\Charras\Fill Ratio.xls" Windows("temporaire.xls").Activate End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, Yes, and Yes....it is working without the shift key in the short cut...
Do you know why the shift key does this ? Thanks a lot for the answer, I was really disapointed. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When you hold down the shift key and open a file manually, it disables
macros. Apparently it has the same effect when you use a shortcut key that includes a shift to fire the macro. When the workbook opens, the macro is halted. -- Regards, Tom Ogilvy "ben.c" wrote in message ... Yes, Yes, and Yes....it is working without the shift key in the short cut... Do you know why the shift key does this ? Thanks a lot for the answer, I was really disapointed. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks agai
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open Excel file from VB and open MACRO | Excel Discussion (Misc queries) | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
Macro to run on file open | Excel Discussion (Misc queries) | |||
Open File within a macro | Excel Discussion (Misc queries) | |||
Automate open file, update links, run macro, close and save file | Excel Programming |