Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Use Macro To Change Which Macro Assigned To Command Button | Excel Discussion (Misc queries) | |||
Creating a macro which presses a button containing a recorded macro | Excel Programming | |||
Can't select macro button after other button is pressed | Excel Programming | |||
Pause macro, add form button to sheet, continue macro when button clicked! | Excel Programming | |||
How to end macro on inital active worksheet containing macro button that was clicked | Excel Programming |