Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi to all
How do i save automatically 1st sheet only from file and give name to that file is the name of the sheet. any help. Thanks Shah |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try it Sub CopySheet() Dim wks As Worksheet Set wks = Worksheets("sheet1") wks.Copy Application.DisplayAlerts = False ActiveWorkbook.SaveAs "c:\" & wks.Name Application.DisplayAlerts = True ActiveWorkbook.Close End Sub -- 天行健,君*以自強不息 地勢坤,君*以厚德載物 http://www.vba.com.tw/plog/ "****al shah" wrote: Hi to all How do i save automatically 1st sheet only from file and give name to that file is the name of the sheet. any help. Thanks Shah |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
****al shah:
Another method: ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.Path _ & "\" & ActiveSheet.Name, FileFormat:=xlExcel4 -- 天行健,君*以自強不息 地勢坤,君*以厚德載物 http://www.vba.com.tw/plog/ "****al shah" wrote: Hi to all How do i save automatically 1st sheet only from file and give name to that file is the name of the sheet. any help. Thanks Shah |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Particulars data Filter from sheet 1 to sheet 2 automatically | Excel Worksheet Functions | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
save automatically | Excel Discussion (Misc queries) | |||
create a formula in one sheet that would read data from separate sheet automatically | Excel Discussion (Misc queries) | |||
Save automatically | Excel Discussion (Misc queries) |