Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Nothing has changed but macros won't work!?!


I have written a few macros and sent them via a text file to a
colleague. She has used these macros on several of her files by
copying and pasting them into new modules. Once the macros are
operable for that workbook we send them on to other users, that way
they just need to click a button and it works.

This process has always worked well. But recently when she tries to
run the Macro there is always an error. It has something to do with
adding a button to a worksheet. It worked earlier and the code has NOT
changed. This has happened on several occasions. Is there something
unstable about macros that can be changed so they will always run
without fail!?

Thanks in advance.


--
JFamilo
------------------------------------------------------------------------
JFamilo's Profile: http://www.excelforum.com/member.php...o&userid=17276
View this thread: http://www.excelforum.com/showthread...hreadid=346085

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Nothing has changed but macros won't work!?!


In an update to this....after working on this for a long time and
restarting Excel, restarting the computer, retyping some code etc. we
finally figured out the problem.

If you are assigning a button to a macro in a file, for example:
Set btn = ActiveSheet.Buttons.Add(l, T, H, W)
btn.OnAction = "Tennessee Policies Aug-2004!macro2"

Make sure the filename doesn't have a "-" in it! That turned out to be
our problem


Hopefully I can save someone a lot of time with this.


--
JFamilo
------------------------------------------------------------------------
JFamilo's Profile: http://www.excelforum.com/member.php...o&userid=17276
View this thread: http://www.excelforum.com/showthread...hreadid=346085

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
Make manually changed pivot table column headings work for other u katy Excel Worksheet Functions 0 June 17th 08 01:06 AM
PC macros won't work on MAC Adam Excel Discussion (Misc queries) 2 April 21st 08 01:58 PM
spellcheck can not change back. changed language can't save work. excell office Excel Discussion (Misc queries) 0 June 15th 06 11:17 PM
Macros don't work on another PC Larry Graff[_2_] Excel Programming 3 November 3rd 04 10:53 PM
protecting excel macros from being changed/ seen by user jon tebbens Excel Programming 1 September 17th 03 07:22 PM


All times are GMT +1. The time now is 06:30 PM.

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

About Us

"It's about Microsoft Excel"