Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TonyL
 
Posts: n/a
Default Macors do not run correctly from icon

I have created a macro & it runs fine when activated from the macros list. I
have applied the macro as an icon on the toolbar but the macro does not run
correctly from the icon. It only completes about half of the code. Why is
this? Thanks

Tony
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Tony

If you use Excel 97 then

Try to Change the takefocusonclick property to false of the button
This is a bug in Excel 97




--
Regards Ron de Bruin
http://www.rondebruin.nl



"TonyL" wrote in message ...
I have created a macro & it runs fine when activated from the macros list. I
have applied the macro as an icon on the toolbar but the macro does not run
correctly from the icon. It only completes about half of the code. Why is
this? Thanks

Tony



  #3   Report Post  
Ron de Bruin
 
Posts: n/a
Default

I see "icon on the toolbar" now

Try to add this line to the macro(first line)

activecell.activate


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Ron de Bruin" wrote in message ...
Hi Tony

If you use Excel 97 then

Try to Change the takefocusonclick property to false of the button
This is a bug in Excel 97




--
Regards Ron de Bruin
http://www.rondebruin.nl



"TonyL" wrote in message ...
I have created a macro & it runs fine when activated from the macros list. I
have applied the macro as an icon on the toolbar but the macro does not run
correctly from the icon. It only completes about half of the code. Why is
this? Thanks

Tony





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
Numbers won't sort correctly. FernW Excel Discussion (Misc queries) 1 March 3rd 05 02:46 PM
Extract icon from *.exe [email protected] Excel Discussion (Misc queries) 2 January 14th 05 06:24 PM
Add a close icon to Excel's Toolbar SNiness Excel Discussion (Misc queries) 1 December 10th 04 06:18 PM
*.csv file wont load correctly Nightwing Excel Discussion (Misc queries) 3 December 1st 04 03:48 PM
Cant add an icon to toolbars Rasoul Khoshravan Azar Excel Discussion (Misc queries) 1 November 28th 04 08:19 PM


All times are GMT +1. The time now is 04:06 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"