Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I can run a macro from the VBA Editor but when I run it from the Ctrl key set for it, it stops after selecting from a file that it has opened. This happens when I run macros on two different workbooks and different macros. The sheet is open and on the screen. I can't step through the macro since it runs fine when in the editor. I''ve tried it with the sheet protection on and off. I'm stuck. I can't turn the system over to the user if they can't use the CTRL+key to run it. Any suggestions would be appreciated. P.S. My HPageBreak doesn't work either. I used the code from this site. The page break also doen't work from Excel-Insert-Page Break either. I'm running Excel 2002 with no upgrades or fixes. -- none |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have Application.screenupdating = false in your macro, try removing
it. One of the subtle differences between stepping through a macro and running it is that screenupdating is always on when you step through it. If the macro is doing charting work, I have found that updating must be on or else some charting commands will not work. Bob Flanagan Macro Systems 144 Dewberry Drive Hockessin, Delaware, U.S. 19707 Phone: 302-234-9857, cell 302-584-1771 http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "RHall" .(donotspam) wrote in message ... I can run a macro from the VBA Editor but when I run it from the Ctrl key set for it, it stops after selecting from a file that it has opened. This happens when I run macros on two different workbooks and different macros. The sheet is open and on the screen. I can't step through the macro since it runs fine when in the editor. I''ve tried it with the sheet protection on and off. I'm stuck. I can't turn the system over to the user if they can't use the CTRL+key to run it. Any suggestions would be appreciated. P.S. My HPageBreak doesn't work either. I used the code from this site. The page break also doen't work from Excel-Insert-Page Break either. I'm running Excel 2002 with no upgrades or fixes. -- none |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Workbooks.Open Filename:="Jobs Data.xls"
This line executes but the next line which selects a sheet doesn't Screen updating is True -- none "Bob Flanagan" wrote: If you have Application.screenupdating = false in your macro, try removing it. One of the subtle differences between stepping through a macro and running it is that screenupdating is always on when you step through it. If the macro is doing charting work, I have found that updating must be on or else some charting commands will not work. Bob Flanagan Macro Systems 144 Dewberry Drive Hockessin, Delaware, U.S. 19707 Phone: 302-234-9857, cell 302-584-1771 http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "RHall" .(donotspam) wrote in message ... I can run a macro from the VBA Editor but when I run it from the Ctrl key set for it, it stops after selecting from a file that it has opened. This happens when I run macros on two different workbooks and different macros. The sheet is open and on the screen. I can't step through the macro since it runs fine when in the editor. I''ve tried it with the sheet protection on and off. I'm stuck. I can't turn the system over to the user if they can't use the CTRL+key to run it. Any suggestions would be appreciated. P.S. My HPageBreak doesn't work either. I used the code from this site. The page break also doen't work from Excel-Insert-Page Break either. I'm running Excel 2002 with no upgrades or fixes. -- none |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Without being able to see the code, anything offered is strictly a guess. If
you want real assistance, please post the code that gives the problem. Simply copy it and paste it into the newsgroup reply pane. "RHall" wrote: Workbooks.Open Filename:="Jobs Data.xls" This line executes but the next line which selects a sheet doesn't Screen updating is True -- none "Bob Flanagan" wrote: If you have Application.screenupdating = false in your macro, try removing it. One of the subtle differences between stepping through a macro and running it is that screenupdating is always on when you step through it. If the macro is doing charting work, I have found that updating must be on or else some charting commands will not work. Bob Flanagan Macro Systems 144 Dewberry Drive Hockessin, Delaware, U.S. 19707 Phone: 302-234-9857, cell 302-584-1771 http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "RHall" .(donotspam) wrote in message ... I can run a macro from the VBA Editor but when I run it from the Ctrl key set for it, it stops after selecting from a file that it has opened. This happens when I run macros on two different workbooks and different macros. The sheet is open and on the screen. I can't step through the macro since it runs fine when in the editor. I''ve tried it with the sheet protection on and off. I'm stuck. I can't turn the system over to the user if they can't use the CTRL+key to run it. Any suggestions would be appreciated. P.S. My HPageBreak doesn't work either. I used the code from this site. The page break also doen't work from Excel-Insert-Page Break either. I'm running Excel 2002 with no upgrades or fixes. -- none |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 freeze panes won't freeze top row only | Excel Discussion (Misc queries) | |||
more macro help - freeze panes | Excel Discussion (Misc queries) | |||
Freeze Pane Macro | Excel Discussion (Misc queries) | |||
Freeze Worksheet while macro runs | Excel Programming | |||
Macro to freeze screen | Excel Programming |