Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Button to save worksheet

Id like to create a button in excel that will save the document to a
specific location with a specific name. Its an Invoice template.

Example, You will fill out the spread sheet, In cell A1, you will enter your
invoice number.

Then when you press the button you created, lets call it "Save", it will
save the worksheet in C:\temp\ with a name A1.xls. where A1 is pulled
from cell A1. Something like: 011a.xls


Is that possible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Button to save worksheet

Thaks Dave,
That worked great!


"Dave Peterson" wrote:

Option Explicit
Sub Testme()
with activesheet
.parent.saveas filename:="c:\temp\" & .range("a1").value & ".xls", _
fileformat:=xlworkbooknormal
end with
end sub


TheSAguy wrote:

Iâd like to create a button in excel that will save the document to a
specific location with a specific name. Itâs an Invoice template.

Example, You will fill out the spread sheet, In cell A1, you will enter your
invoice number.

Then when you press the button you created, lets call it "Save", it will
save the worksheet in âœC:\temp\❠with a name âœA1â.xls. where A1 is pulled
from cell A1. Something like: 011a.xls

Is that possible?


--

Dave Peterson

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
VBA Button to save worksheet Dave Peterson Excel Programming 0 February 4th 09 12:25 AM
Problem: vba code for creating a button to save worksheet as Cell caldog Excel Programming 7 September 26th 06 10:04 PM
Comman Button to Save Worksheet as Workbook tmstreet Excel Discussion (Misc queries) 2 July 17th 06 05:44 PM
How to diasble save and save as menu but allow a save button hon123456 Excel Programming 1 June 12th 06 09:50 AM
How can I create a button to save one worksheet into a new workshe court Excel Discussion (Misc queries) 2 July 6th 05 06:39 PM


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