Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In vb I have code to open a csv file. After opening the file "YY" is entered
in cell A1 and macro stops. But if I introduce a breakpoint at open file statement code and step it thru Mcro continues OK. I have no idea where "YY" is coming from. Can anyone say how this can be resolved without having to set break point and step thru as this will be used by end users who will find it confusing. Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
posting your code might be helpful. Regards FSt1 "Prema" wrote: In vb I have code to open a csv file. After opening the file "YY" is entered in cell A1 and macro stops. But if I introduce a breakpoint at open file statement code and step it thru Mcro continues OK. I have no idea where "YY" is coming from. Can anyone say how this can be resolved without having to set break point and step thru as this will be used by end users who will find it confusing. Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do you start your macro?
Do you use a shortcut key? Does that shortcut key include the shiftkey? Does the problem go away if you drop the shift from the shortcut key combination? If you have a workbook that has a workbook_open event or an auto_open procedure, then if you open that file with the shift key held down, you stop those procedures from running. The shift-key in the shortcut combination confuses excel/vba to stop after you open a file using one of those shortcut keys. Prema wrote: In vb I have code to open a csv file. After opening the file "YY" is entered in cell A1 and macro stops. But if I introduce a breakpoint at open file statement code and step it thru Mcro continues OK. I have no idea where "YY" is coming from. Can anyone say how this can be resolved without having to set break point and step thru as this will be used by end users who will find it confusing. Thank you -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Macro is started by pressing a button on the workbook. it opens many files
but this is the only one it seem to be hanging. It used to work OK before but suddenly started this problem. This file is saved from a third party website. Could any changes in the properties of the file cause the problem? Prema "Dave Peterson" wrote: How do you start your macro? Do you use a shortcut key? Does that shortcut key include the shiftkey? Does the problem go away if you drop the shift from the shortcut key combination? If you have a workbook that has a workbook_open event or an auto_open procedure, then if you open that file with the shift key held down, you stop those procedures from running. The shift-key in the shortcut combination confuses excel/vba to stop after you open a file using one of those shortcut keys. Prema wrote: In vb I have code to open a csv file. After opening the file "YY" is entered in cell A1 and macro stops. But if I introduce a breakpoint at open file statement code and step it thru Mcro continues OK. I have no idea where "YY" is coming from. Can anyone say how this can be resolved without having to set break point and step thru as this will be used by end users who will find it confusing. Thank you -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening a file stops a Macro | Excel Worksheet Functions | |||
Formula stops working after re-opening worksheet | Excel Worksheet Functions | |||
File opening via Macro with varying file name | Excel Programming | |||
Macro stops running after file has moved | Excel Programming |