![]() |
![]() |
|
|||||||
| 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 | |
|
Board Regular
Join Date: Feb 2002
Location: Calgary
Posts: 57
|
Quote:
More along these lines, with the cell A1 containing a date of 2002/02/25: Public Sub SaveAsA1() ThisFile = Range("A1").Value ActiveWorkbook.SaveAs FileName:="C:data" & ThisFile End Sub |
|
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
The following may be problemtatic as Excel doesn't like to save files with "/".
ThisFile = Range("A1").Value Therefore, something like: thisfile = WorksheetFunction.Substitute(range("a1"), "/", "_") may be more appropriate, where Excel replaces / with _ with the Substitute function (works the same as the worksheet function (e.g., =subsitute(a1,"/","_")) Cheers, Nate P.S. - How about that game yesterday? [ This Message was edited by: NateO on 2002-02-25 09:05 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary
Posts: 57
|
Thanks very much...works!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|