ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro no workie workie - Help Please (https://www.excelbanter.com/excel-programming/323534-re-macro-no-workie-workie-help-please.html)

Ralmond

Macro no workie workie - Help Please
 

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


Dave Peterson[_5_]

Macro no workie workie - Help Please
 
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


All times are GMT +1. The time now is 10:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com