Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have about seven procedures that are written to run in succession from a
worksheet CmdBtn. However, several do not unless I manually run them with F5. It has worked for me in other applications, so I'm baffled. Plus, the MS debugger identifies the problem with a Range.ClearContents function which is the last procedure and yet several procedures before it have failed, so I'm doubly baffled. And, as stated, they all run without a hitch when run manually. Any suggestions? Thank you. Jim Kobzeff |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The code you say doesn't run; is it conditional on if statements. If so,
possibly your conditions are not being met. -- Regards, Tom Ogilvy "JK" wrote in message ... I have about seven procedures that are written to run in succession from a worksheet CmdBtn. However, several do not unless I manually run them with F5. It has worked for me in other applications, so I'm baffled. Plus, the MS debugger identifies the problem with a Range.ClearContents function which is the last procedure and yet several procedures before it have failed, so I'm doubly baffled. And, as stated, they all run without a hitch when run manually. Any suggestions? Thank you. Jim Kobzeff |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In addition to Tom's suggestion, do you have any 'On Error Resume
Next' or 'On Error goto {somewhere}' statements? If so, unless they are protect against *expected* errors, lose them. You will find debugging greatly simplified. -- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article , says... I have about seven procedures that are written to run in succession from a worksheet CmdBtn. However, several do not unless I manually run them with F5. It has worked for me in other applications, so I'm baffled. Plus, the MS debugger identifies the problem with a Range.ClearContents function which is the last procedure and yet several procedures before it have failed, so I'm doubly baffled. And, as stated, they all run without a hitch when run manually. Any suggestions? Thank you. Jim Kobzeff |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you for the suggestions. Both did contribute in finding the problem.
Seems the sheet must be activated. Strange because it worked fine without activation up until a week ago. Thanks again "JK" wrote in message ... I have about seven procedures that are written to run in succession from a worksheet CmdBtn. However, several do not unless I manually run them with F5. It has worked for me in other applications, so I'm baffled. Plus, the MS debugger identifies the problem with a Range.ClearContents function which is the last procedure and yet several procedures before it have failed, so I'm doubly baffled. And, as stated, they all run without a hitch when run manually. Any suggestions? Thank you. Jim Kobzeff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 fails to calculate cells correctly | Excel Discussion (Misc queries) | |||
Macro fails when worksheet protected | Excel Discussion (Misc queries) | |||
Macro Suddenly Fails | Excel Discussion (Misc queries) | |||
1-variable Data Table dependent on MS Query fails to update correctly | Excel Discussion (Misc queries) | |||
Macro fails without VB help files | Excel Programming |