Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Macro Doesn't Run With Command Button, But Does Run With F8 Key

A problem occurred in Excel, late in the day yesterday. A macro that worked
for a long time stopped working all of a sudden. I subsequently ran a few
other macros and these others failed too. As far as I can tell, nothing has
changed to cause this behavior. When I step through the code with F8, the
macro runs fine. It was late, so I thought I could just down the machine,
come in today, reboot, and everything would be reset to normal. No such
luck. What would prevent a macro (or several macros) from running, via a
Command Button, but cause it to run by means of pressing the F8 key
repeatedly?

Thanks for the help!
Ryan--



--
RyGuy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Macro Doesn't Run With Command Button, But Does Run With F8 Key

If you are getting any messages along with the failures, it would help to let
us know what the message says. Since we cannot see your system or what you
are specifically doing, you have to be our eyes and convey via the posting
any messages that appear on screen when you attempt to run a macro that
"fails".

"ryguy7272" wrote:

A problem occurred in Excel, late in the day yesterday. A macro that worked
for a long time stopped working all of a sudden. I subsequently ran a few
other macros and these others failed too. As far as I can tell, nothing has
changed to cause this behavior. When I step through the code with F8, the
macro runs fine. It was late, so I thought I could just down the machine,
come in today, reboot, and everything would be reset to normal. No such
luck. What would prevent a macro (or several macros) from running, via a
Command Button, but cause it to run by means of pressing the F8 key
repeatedly?

Thanks for the help!
Ryan--



--
RyGuy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Macro Doesn't Run With Command Button, But Does Run With F8 Key

The button assignment may be broken. For example, if it is a Forms button,
right-click the button and select:

Assign Macro...

check to see if all is o.k.


If it is a Controls button, then right-click the button and View Code.

--
Gary''s Student - gsnu200767


"ryguy7272" wrote:

A problem occurred in Excel, late in the day yesterday. A macro that worked
for a long time stopped working all of a sudden. I subsequently ran a few
other macros and these others failed too. As far as I can tell, nothing has
changed to cause this behavior. When I step through the code with F8, the
macro runs fine. It was late, so I thought I could just down the machine,
come in today, reboot, and everything would be reset to normal. No such
luck. What would prevent a macro (or several macros) from running, via a
Command Button, but cause it to run by means of pressing the F8 key
repeatedly?

Thanks for the help!
Ryan--



--
RyGuy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Macro Doesn't Run With Command Button, But Does Run With F8 Ke

Thanks for looking guys! Actually, the problems were numerous... Too
difficult to describe. One macro could not select a range, one macro could
not display a UserForm, one macro could not do a simple calculation...the
bizarre behavior worsened throughout the day. Must have gotten corrupted
somehow. We just went to Control Panel, uninstalled Excel and reinstalled it
from the CD. Problem resolved.

Thanks!
Ryan--

--
RyGuy


"Gary''s Student" wrote:

The button assignment may be broken. For example, if it is a Forms button,
right-click the button and select:

Assign Macro...

check to see if all is o.k.


If it is a Controls button, then right-click the button and View Code.

--
Gary''s Student - gsnu200767


"ryguy7272" wrote:

A problem occurred in Excel, late in the day yesterday. A macro that worked
for a long time stopped working all of a sudden. I subsequently ran a few
other macros and these others failed too. As far as I can tell, nothing has
changed to cause this behavior. When I step through the code with F8, the
macro runs fine. It was late, so I thought I could just down the machine,
come in today, reboot, and everything would be reset to normal. No such
luck. What would prevent a macro (or several macros) from running, via a
Command Button, but cause it to run by means of pressing the F8 key
repeatedly?

Thanks for the help!
Ryan--



--
RyGuy

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button and macro Bob[_16_] Excel Discussion (Misc queries) 4 June 12th 09 03:51 AM
Command Button to run a Macro Mark Allen Excel Worksheet Functions 2 June 4th 07 04:24 PM
Run Macro from Command Button [email protected] Excel Discussion (Misc queries) 1 April 23rd 07 04:36 PM
Command Button Macro Patty[_3_] Excel Programming 1 May 18th 06 05:00 PM
Macro for command button wcmar10 Excel Programming 0 July 30th 03 09:26 PM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"