ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do i create a macro that saves the filename that is equal to a cell in the sheet? (https://www.excelbanter.com/excel-discussion-misc-queries/58944-how-do-i-create-macro-saves-filename-equal-cell-sheet.html)

Chukka

How do i create a macro that saves the filename that is equal to a cell in the sheet?
 

How do i create a macro that saves the filename that is equal to a cell
in the sheet?


--
Chukka
------------------------------------------------------------------------
Chukka's Profile: http://www.excelforum.com/member.php...o&userid=29365
View this thread: http://www.excelforum.com/showthread...hreadid=491092


Dave Peterson

How do i create a macro that saves the filename that is equal to acell in the sheet?
 
with activeworkbook
.saveas filename:="C:\myfolder\" & .worksheets("sheet99").range("z99").value _
& ".xls", fileformat:=xlworkbooknormal
end with

No checking at all!

Chukka wrote:

How do i create a macro that saves the filename that is equal to a cell
in the sheet?

--
Chukka
------------------------------------------------------------------------
Chukka's Profile: http://www.excelforum.com/member.php...o&userid=29365
View this thread: http://www.excelforum.com/showthread...hreadid=491092


--

Dave Peterson


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

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