Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this problem, my excel workbook is very big. 4 mega bytes. i need to
develop a macro to save only a worksheet from the workbook. How do i accomplish this? Thank You Ernie |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could create a new workbook, copy the worksheet, and then save the
new workbook. COde for that below... Dim NewFile As String NewFile = "C:\NewFile.xls" 'Select what you want to copy Range("A2:I200").Select Selection.Copy 'Create your new workbook and paste Workbooks.Add ActiveSheet.Paste 'Save it ActiveWorkbook.SaveAs Filename:=NewFile, FileFormat:=xlNormal, _ Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _ CreateBackup:=False |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Save As and save current numbers not the actual formulas and links | Excel Discussion (Misc queries) | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming | |||
Save Excel file - prompts to save - no Volitile functions used | Excel Worksheet Functions | |||
Save As - Multiple Sheets fails to save as text file | Excel Programming |