Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default File saved as cell entry macro


I am looking for a macro that when activated by a button will rename the
file to a cell entry (part number) and save the renamed file to a set
directory. Is this possible?
Thanks in advance!


--
xyzer
------------------------------------------------------------------------
xyzer's Profile: http://www.excelforum.com/member.php...o&userid=26899
View this thread: http://www.excelforum.com/showthread...hreadid=401235

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default File saved as cell entry macro

I would think it would contain something like:


with activeworkbook
.SaveAs Filename:="c:\yourpath\" _
& .worksheets("sheet1").range("a1").value
end with

But remember that there are characters that are not allowed in a filename
(slashes come to mind).


xyzer wrote:

I am looking for a macro that when activated by a button will rename the
file to a cell entry (part number) and save the renamed file to a set
directory. Is this possible?
Thanks in advance!

--
xyzer
------------------------------------------------------------------------
xyzer's Profile: http://www.excelforum.com/member.php...o&userid=26899
View this thread: http://www.excelforum.com/showthread...hreadid=401235


--

Dave Peterson
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
Macro saved .xls file is not opening in 2007 Vinod Excel Discussion (Misc queries) 2 July 8th 09 06:23 PM
Excel 2007 Changes cell formating after file is saved Jeff Page Excel Discussion (Misc queries) 3 November 13th 08 03:47 AM
Why is path name added to active cell when Excel file is saved? [email protected] Excel Discussion (Misc queries) 1 June 28th 07 04:39 PM
store file saved date in cell Martin Connelly Excel Worksheet Functions 1 November 16th 04 01:32 PM
Recording the last saved date of an external file in a cell Mickey Mouse[_4_] Excel Programming 1 September 5th 03 09:29 AM


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