Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Generating File Names

Is there a way I can automatically generate a file name
using the contents of a cell. i would like the user to
be able to simply press Ctrl+s and save the file name as
a unique number generated in a cell.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Generating File Names

Barry,

Try something like

Activeworkbook.SaveAs Filename:= "C:\myTest\" & Range("A1").Value &
".xls"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Barry" wrote in message
...
Is there a way I can automatically generate a file name
using the contents of a cell. i would like the user to
be able to simply press Ctrl+s and save the file name as
a unique number generated in a cell.

Thanks



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
file names Mr Widget Excel Worksheet Functions 3 March 24th 10 01:06 AM
Open Excel file get error with file names that have spaces in the Kozmo Setting up and Configuration of Excel 6 October 29th 08 02:51 AM
EXCEL97 FILE NAMES TRUNCATED TO THE FIRST LETTER IN THE FILE NAME Geoff Porter New Users to Excel 6 May 25th 06 08:31 PM
Generating a repeating list of names from an ever changing roster. smoore Excel Worksheet Functions 5 May 3rd 06 08:14 PM
embedding a macro when generating a CSV file Fred Charts and Charting in Excel 1 February 16th 06 12:16 AM


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