LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatic File Name based on cell content

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim CellName As String
CellName = Range("A1")
ActiveWorkbook.SaveAs Filename:="C:\{Path leading to
Desktop}\Current List\" & CellName & ".xls"
End Sub



Prangk wrote in message ...
I just want to expedite my "save as" procedure through this question. I
would like to have an automatic file name based on cell (A1) content.
Then it will save the file "automatically" on a folder located at the
desktop (folder name "Current List"). But all of these will be on
"save as" command. Is this possible?

I will appreciate any help.


---
Message posted from http://www.ExcelForum.com/

 
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
sum if based on PARTIAL content of another cell [email protected] Excel Worksheet Functions 1 April 6th 07 05:19 AM
Automatic cell content deletion [email protected] Excel Discussion (Misc queries) 4 August 24th 06 08:05 AM
insert picture from file based on cel value/content Jamaican Teacher Excel Worksheet Functions 1 June 8th 06 06:27 PM
Add name by vba based on cell content christobal Excel Programming 3 April 1st 04 12:00 PM
Format Row based on Cell Content SFrongillo_Lib Excel Programming 3 October 10th 03 01:48 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"