Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default This one is WEIRD!


Okay.

So I have a macro which runs by clicking on the "run" button in the
macro menu/toolbar.

And I have a button, which when clicked should call that macro.
But when clicking on the button vba finds an error in the macro, which
is NOT an error since the macro runs fine otherwise. So bloody
bizaare!

HELP!


--
schoujar
------------------------------------------------------------------------
schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=468127

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default This one is WEIRD!

Hi Schoujar.

Post the contentious code.

Also, what is the reported error and which code line is highlighted ?


---
Regards,
Norman



"schoujar" wrote in
message ...

Okay.

So I have a macro which runs by clicking on the "run" button in the
macro menu/toolbar.

And I have a button, which when clicked should call that macro.
But when clicking on the button vba finds an error in the macro, which
is NOT an error since the macro runs fine otherwise. So bloody
bizaare!

HELP!


--
schoujar
------------------------------------------------------------------------
schoujar's Profile:
http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=468127



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default This one is WEIRD!

Are you using xl97?

Are you trying to run the macro by clicking on a commandbutton from the control
toolbox toolbar (or a different control on that control toolbox toolbar)?

If yes, try manually changing the .takefocusonclick property to false for that
button/control.

If the control doesn't have that property, add:

activecell.activate

to the top of your code.

This bug was fixed in xl2k.



schoujar wrote:

Okay.

So I have a macro which runs by clicking on the "run" button in the
macro menu/toolbar.

And I have a button, which when clicked should call that macro.
But when clicking on the button vba finds an error in the macro, which
is NOT an error since the macro runs fine otherwise. So bloody
bizaare!

HELP!

--
schoujar
------------------------------------------------------------------------
schoujar's Profile: http://www.excelforum.com/member.php...o&userid=26574
View this thread: http://www.excelforum.com/showthread...hreadid=468127


--

Dave Peterson
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
Is this weird or what? Finance Guru Excel Worksheet Functions 8 August 15th 08 07:24 PM
HELP- Weird Charting Bug 1nsomniac Charts and Charting in Excel 1 March 28th 06 09:33 PM
Weird jhill New Users to Excel 1 August 10th 05 04:48 PM
This seems weird to me Ken McLennan[_3_] Excel Programming 6 October 29th 04 02:11 PM
weird LiSa Excel Programming 2 June 10th 04 09:37 AM


All times are GMT +1. The time now is 03:33 PM.

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"