Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
[Xl97] This piece of code is to copy 2 sheets ('Data' and 'Selection')
to a new workbook and name and save the new book to a path and with a name from the 'Selection' sheet of the new workbook. The path is in 'Selection' G2 and the name in B2. It produces the copy workbook, saves it using the correct path but only uses the date as the file name, and does not include the identifier in B2. G2 reads E:\ELS\Inspections\ B2 reads ELSpilot Sheets(Array("Data", "Selection")).Select Sheets(Array("Data", "Selection")).Copy ActiveWorkbook.SaveAs FileName:= _ Sheets("Selection").Range("G2") & Range("B2") & _ Format(Now(), " DD.MM.YY") & ".xls" -- Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula incomplete | Excel Discussion (Misc queries) | |||
incomplete name on y axis | Excel Discussion (Misc queries) | |||
Incomplete scroll bar | Excel Discussion (Misc queries) | |||
Sorting is Incomplete | Excel Discussion (Misc queries) | |||
oldest incomplete job | Excel Worksheet Functions |