![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: May 2002
Posts: 34
|
Hi,
I am confused as to why this doesn't work. I have the following lines below in the middle of my VBA macro: Workbooks.Open Filename:="excelfile.xls", ReadOnly:=True MsgBox "Here" It opens the file and continues to run the script, if run from within VBA Editor. If run from within excel (e.g. pressing a button), then it exits the script after opening (doesn't even display the message box). Help!! Andrew |
|
|
|
|
|
#2 |
|
Join Date: May 2002
Posts: 34
|
Alternatively, can I access cells in another workbook without having the 'workbooks.open' method?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|