Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() ok so here it is now, instead of having it on auto-run how do i set i up to run after cell g5 is populated? Sub SaveDeal() Workbooks("book1").SaveCopyAs Filename:="C:\Documents an Settings\ralmond\Desktop\DEALS\" & Range("G5").Value & ".xls" End Su -- Ralmon ----------------------------------------------------------------------- Ralmond's Profile: http://www.excelforum.com/member.php...fo&userid=2007 View this thread: http://www.excelforum.com/showthread.php?threadid=34683 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want the code to execute when you close the workbook, just name it
auto_close(). You may want to be more specific about what G5 you're using: .... & worksheets("sheet3").range("g5").value & ... Ralmond wrote: ok so here it is now, instead of having it on auto-run how do i set it up to run after cell g5 is populated? Sub SaveDeal() Workbooks("book1").SaveCopyAs Filename:="C:\Documents and Settings\ralmond\Desktop\DEALS\" & Range("G5").Value & ".xls" End Sub -- Ralmond ------------------------------------------------------------------------ Ralmond's Profile: http://www.excelforum.com/member.php...o&userid=20070 View this thread: http://www.excelforum.com/showthread...hreadid=346835 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
OnTime no workie in Userform | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |