Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it Dater that's the problem?
maybe you can use: Dater = Format(activesheet.range("h14").value, "mmmm") to get that month. Nigel wrote: Hi, i have managed to write this which works ok for mt sheet saving as workbook: Namer = ActiveSheet.Name Location = "C:\Documents and Settings\myname\Desktop\Invoices" yearly = Format(Date, "yy") Dater = Format(Date, "mmmm") Clienter = Range("B23").Value detailer = Range("B32").Value ActiveSheet.Copy ActiveWorkbook.SaveAs Location & "\" & Dater & " " & yearly & "\" & Namer & " " & Clienter & " " & detailer however, i need it to save in the month folder as specified on the onvoice date but currently it is taking the month of today and searching for that folder. Can i take the cell data , range("H14"), and format the value to month only to get the variable to search for the month only?? thanks, Nigel -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving / emailing sinlge excel sheet, not entire workbook | Excel Discussion (Misc queries) | |||
specify each sheet name when saving workbook as html | Excel Discussion (Misc queries) | |||
Saving one sheet within a workbook | Excel Discussion (Misc queries) | |||
Weekly Email one sheet in workbook not saving contacts | Excel Worksheet Functions | |||
Saving only 1 sheet of a workbook | Excel Programming |