![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello.....Everybody
If I want to Save as Activeworkbook by using the same name but Lastname (.xls) I want to use .tmp , How can I do (by Macro Command) .....Thanks |
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Do you mean like this?
Sub savename() Application.ActiveWorkbook.SaveAs ("c:filename.tmp") End Sub you could also use: Application.Activeworkbook.savecopyas to save a copy instead of the actual file. Hope that helps |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
I use this Command but it show Run-time Error 1004 ,How can i do next ?
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
Hello...again
Yes it work perfectly, last time i do something wrong with this command (human error) now it work already ...thank you GUY |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|