![]() |
VBA Button to save worksheet
Option Explicit
Sub Testme() with activesheet .parent.saveas filename:="c:\temp\" & .range("a1").value & ".xls", _ fileformat:=xlworkbooknormal end with end sub TheSAguy wrote: 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? -- Dave Peterson |
All times are GMT +1. The time now is 05:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com