Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Saving a file with a name from a cell value.

Thisworkbook.SaveAs
Filename:=Thisworbook.Worksheets("Sheet1").Range(" A1").Value

If it is the active workbook, change ThisWorkbook to ActiveWorkbook in two
places

Thisworkbook refers to the workbook containing the code.

Not clear where copy and paste plays a role here.
--
Regards,
Tom Ogilvy

"Kobus" wrote in message
...
I need to write a macro that when executed, will save a file with the name

taken from the value of a specific cell in that spreadsheet. How do I do
that? Copy & paste does not work and when recording a macro is not
recorded.

Any help will be appreciated.

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
Cell changes format upon saving file victorsm Excel Discussion (Misc queries) 3 November 13th 08 03:50 AM
Saving file using value in cell as the filename BCassedy Excel Worksheet Functions 3 July 7th 07 12:43 AM
Saving a file with a cell name Save a file with the name from a cell Excel Discussion (Misc queries) 1 June 21st 07 12:41 PM
Saving worksheet in new file with date AND cell value as file name michaelberrier Excel Discussion (Misc queries) 4 May 26th 06 08:05 PM
Saving a file(new) using the multiple cell contents as a file name Dave Peterson[_3_] Excel Programming 1 August 1st 03 01:40 PM


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