Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA Button to save worksheet | Excel Programming | |||
Problem: vba code for creating a button to save worksheet as Cell | Excel Programming | |||
Comman Button to Save Worksheet as Workbook | Excel Discussion (Misc queries) | |||
How to diasble save and save as menu but allow a save button | Excel Programming | |||
How can I create a button to save one worksheet into a new workshe | Excel Discussion (Misc queries) |