Google Gruplar, artık yeni Usenet gönderilerini veya aboneliklerini desteklememektedir. Geçmişteki içerikler görüntülenebilir kalmaya devam edecek.

What commands do you use to name a workbook, save a workbook,open a workbook

2 görüntüleme
İlk okunmamış mesaja atla

Steven R. Berke

okunmadı,
24 Tem 2003 18:21:0224.07.2003
alıcı
Would you please provide wih the commands to name a existing workbook,
save an existing workbook, and then open the workbook. Thank you

pancho

okunmadı,
24 Tem 2003 18:37:2324.07.2003
alıcı
to name a existing workbook you need to use the save as
method of the workbook, example:
ActiveWorkbook.SaveAs "NewName.xls"
The previous commnand can fail if it already exist a file
on the current directory with the name "NewName.xls", but
if you want to saveit any way you can use:

on error resume next
workbooks("NewName.xls").close false
kill "NewName.xls"
ActiveWorkbook.SaveAs "NewName.xls"

to just save the workbook with the same name it already
has you use the save command, example:
ActiveWorkbook.Save


Francisco Mariscal
fcomariscal at hotmail dot com

>.
>

0 yeni ileti