Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to add Button


Have a macro that crunches a file each day and saves the file as tha
day's date. I want to have my macro add a button to the daily fil
when it's run and the macro that's attached to the button reside in th
daily file. Not reside with my file that crunches the original file
which I close. Also, if I share the file, the button will work.

I can get the code to insert a button. But, how do I get my macr
which inserts the button, to write/add the code to the daily file t
attach the button too? Basically, the macro writes a macro for the ne
file.

Hope that makes sense.

Thank

--
Lift Of
-----------------------------------------------------------------------
Lift Off's Profile: http://www.excelforum.com/member.php...nfo&userid=824
View this thread: http://www.excelforum.com/showthread.php?threadid=53469

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Macro to add Button

Check out this site...

http://www.cpearson.com/excel/vbe.htm
--
HTH...

Jim Thomlinson


"Lift Off" wrote:


Have a macro that crunches a file each day and saves the file as that
day's date. I want to have my macro add a button to the daily file
when it's run and the macro that's attached to the button reside in the
daily file. Not reside with my file that crunches the original file,
which I close. Also, if I share the file, the button will work.

I can get the code to insert a button. But, how do I get my macro
which inserts the button, to write/add the code to the daily file to
attach the button too? Basically, the macro writes a macro for the new
file.

Hope that makes sense.

Thanks


--
Lift Off
------------------------------------------------------------------------
Lift Off's Profile: http://www.excelforum.com/member.php...fo&userid=8249
View this thread: http://www.excelforum.com/showthread...hreadid=534690


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Macro to add Button

See Chip Pearson's page on this

http://www.cpearson.com/excel/vbe.htm

--
Regards,
Tom Ogilvy


"Lift Off" wrote:


Have a macro that crunches a file each day and saves the file as that
day's date. I want to have my macro add a button to the daily file
when it's run and the macro that's attached to the button reside in the
daily file. Not reside with my file that crunches the original file,
which I close. Also, if I share the file, the button will work.

I can get the code to insert a button. But, how do I get my macro
which inserts the button, to write/add the code to the daily file to
attach the button too? Basically, the macro writes a macro for the new
file.

Hope that makes sense.

Thanks


--
Lift Off
------------------------------------------------------------------------
Lift Off's Profile: http://www.excelforum.com/member.php...fo&userid=8249
View this thread: http://www.excelforum.com/showthread...hreadid=534690


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to add Button


Jim: That should do it! Sorry for the ignorance.

Thanks for your help, Clif

--
Lift Of
-----------------------------------------------------------------------
Lift Off's Profile: http://www.excelforum.com/member.php...nfo&userid=824
View this thread: http://www.excelforum.com/showthread.php?threadid=53469

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
Use Macro To Change Which Macro Assigned To Command Button CVinje Excel Discussion (Misc queries) 0 May 25th 10 09:55 PM
Creating a macro which presses a button containing a recorded macro petros89[_3_] Excel Programming 3 October 5th 05 02:49 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 PM


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