Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi -
I have a macro that does a save as action and saves as a name from the values of a couple cells... and it seems to work okay. The problem is I have 3 worksheets and it only saves the active worksheet... can anybody help me out. It would be much appreciated. This is what I've got Sub SaveAs() Dim uname With ActiveWorkbook.Worksheets("sheet1") uname = .Range("B2").Value & " " & _ .Range("B3").Value End With ActiveWorkbook.SaveAs ThisWorkbook.Name _ & " " & " " & uname & ".xls" ActiveWorkbook.Close True End Sub Again, I need it to save the entire workbook to a new file and not just the avctive worksheet. Thanks A |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
save as txt saves different tab, why??? | Excel Discussion (Misc queries) | |||
save search settings having all tabs selected-or entire workbook | Excel Worksheet Functions | |||
Excel workbook is corrupted, workbook automatically saves on start | Excel Discussion (Misc queries) | |||
Save As CSV saves empty rows | Excel Discussion (Misc queries) | |||
How can I test when any worksheet within a workbook is selected | Excel Programming |