Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default Saving file to a differant name

In Excel 2003, I have a spreadsheet which i fill in for differant
items. I then save a copy with the item number which is in Cell C:3.

Is there a way to automate this process, Ie to-do a save as with the
contents of cell C:3, from a button click of the toolbar.


Thanks
Garry
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 621
Default Saving file to a differant name

Assign this macro to button on your Toolbar.

Sub New_Name()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
With ActiveWorkbook
.SaveAs Filename:=ActiveWorkbook.Path _
& "\" & ActiveSheet.Range("C3").Value & ".xls"

'If file has never been saved it will have no path
'you must supply a path with this code instead of above

' .SaveAs Filename:="C:\Gordstuff" _
' & "\" & ActiveSheet.Range("C3").Value & ".xls"

End With
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub


Gord

On Sun, 29 Jan 2012 10:51:48 -0800 (PST), Garry
wrote:

In Excel 2003, I have a spreadsheet which i fill in for differant
items. I then save a copy with the item number which is in Cell C:3.

Is there a way to automate this process, Ie to-do a save as with the
contents of cell C:3, from a button click of the toolbar.


Thanks
Garry

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
Getting data from 2 differant colums Kelly******** Excel Worksheet Functions 1 December 24th 09 03:43 AM
Referancing differant sheets jp nellie Excel Worksheet Functions 2 November 16th 05 09:19 PM
Printing differant rows Marty Excel Programming 0 July 5th 05 06:01 PM
Go to Differant Cells After entering mporter501[_3_] Excel Programming 3 April 8th 04 08:42 PM
Going to differant Cells after Entering mporter501[_2_] Excel Programming 1 April 8th 04 04:17 PM


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