Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to save as using two cell values inside worksheet


I want to create a macro to rename a file at the first save using th
value of two cells inside the workbook

--
sdblac
-----------------------------------------------------------------------
sdblack's Profile: http://www.excelforum.com/member.php...fo&userid=1469
View this thread: http://www.excelforum.com/showthread.php?threadid=26318

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro to save as using two cell values inside worksheet

With ThisWorkbook.Worksheets(1)
ThisWorkbook.SaveAs filename:= _
"C:\MyFolder\" & .Range("A1").value & "_" & _
.Range("B9").Vaue & ".xls"
End With

You said the first save - but it would be hard to suggest much more without
knowing more about the workbook - is it being created from a template, when
the values in the two cells would be created and so forth.

--
Regards,
Tom Ogilvy

"sdblack" wrote in message
...

I want to create a macro to rename a file at the first save using the
value of two cells inside the workbook.


--
sdblack
------------------------------------------------------------------------
sdblack's Profile:

http://www.excelforum.com/member.php...o&userid=14694
View this thread: http://www.excelforum.com/showthread...hreadid=263180



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
Importing Text with Carriage Returns inside cell values Ryan L Excel Discussion (Misc queries) 1 May 14th 09 08:58 PM
How to Count values inside a cell when refered elsewhere? littlejess22 Excel Worksheet Functions 4 August 21st 07 01:43 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
macro save a file name from a cell in 1st worksheet karene Excel Discussion (Misc queries) 2 April 10th 06 12:13 PM
Macro Inside Cell dah Excel Discussion (Misc queries) 3 January 23rd 06 09:08 PM


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