![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
Does anyone know a way to alter the following VBA code to include a directory path? This subroutine saves the file with a name taken as the value in cell "A2" of sheet 1, but I need to add in a directory path to save the file where I want to.
Thanks in advance............. Sub named_save Sheets("Sheet1").Select ThisFile = Range("A2").Value ActiveWorkbook.SaveAs Filename:=ThisFile ActiveWindow.Close End Sub |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Quote:
[ This Message was edited by: TsTom on 2002-04-25 21:39 ] |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
Thanks that works great now!!
cheers |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|