From: shital shah on
Thanks you Mike for reply it's working fine.
Thanks Again.
One more thing i am useing excel2003 is there any good book for excel2007 or
any PDF file from net.
Thanks

"Mike H" wrote:

> Hi,
>
> Try this. Note I used XLSX as the file extension because I'm using e2007 so
> change to the apppropriate one for you
>
> Sub MyBackup()
> Application.DisplayAlerts = False
> ActiveWorkbook.Sheets("Data").Copy
> ActiveWorkbook.SaveAs Filename:="C:\MyBackup.xlsx"
> ActiveWorkbook.Close
> Application.DisplayAlerts = True
> End Sub
> --
> Mike
>
> When competing hypotheses are otherwise equal, adopt the hypothesis that
> introduces the fewest assumptions while still sufficiently answering the
> question.
>
>
> "shital shah" wrote:
>
> > Hi I have I workbook I that I have more than 10 worksheet I want to take a
> > backup of only 1 worksheet which name is “Data” that is to store in other
> > folder & when I take backup next time it should over write lake backup any
> > help.
> >
> > Thanks
> >
From: Mike H on
Hi,

Try this. Note I used XLSX as the file extension because I'm using e2007 so
change to the apppropriate one for you

Sub MyBackup()
Application.DisplayAlerts = False
ActiveWorkbook.Sheets("Data").Copy
ActiveWorkbook.SaveAs Filename:="C:\MyBackup.xlsx"
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"shital shah" wrote:

> Hi I have I workbook I that I have more than 10 worksheet I want to take a
> backup of only 1 worksheet which name is “Data” that is to store in other
> folder & when I take backup next time it should over write lake backup any
> help.
>
> Thanks
>
 | 
Pages: 1
Prev: Find
Next: rows truncated when printing