In addition to this code which generates the save as name like I wanted it to I can not save the spreadsheet with the format of a date in the name.
Let me try and explain myself a little better. The code grabs the contents from 3 cells which produces a "suggested" save as name like [DOCUMENT NAME - WEEK ENDING 01/01/01]
DOCUMENT NAME = Cell I7
WEEK ENDING = Cell C4
01/01/01 = Cell E4 or weDate
Or better yet I cannot save the file with a "/" in the name. So I need to change the "/" to a "-" before it suggests the name.
I tried changing the format of the date to show as mm-dd-yyyy, and it does show it as that but if you activate the cell that it's in (E4) then in the formula bar it shows mm/dd/yyyy.
Is there a way I can change the slash to a dash or try and grab the date as a text instead of the date???
Code:
[COLOR="Blue"]Sub[/COLOR] Saveme()
[COLOR="blue"]Dim[/COLOR] fName [COLOR="blue"]As String[/COLOR]
[COLOR="Blue"]Dim [/COLOR]weDate [COLOR="blue"]As String[/COLOR]
weDate = Sheet1.Range("E4")
fName = Sheet1.Range("I7") & " - " & Sheet1.Range("C4") & " " & weDate
Application.Dialogs(xlDialogSaveAs).Show (fName)
[COLOR="blue"]End Sub[/COLOR]
Let me try and explain myself a little better. The code grabs the contents from 3 cells which produces a "suggested" save as name like [DOCUMENT NAME - WEEK ENDING 01/01/01]
DOCUMENT NAME = Cell I7
WEEK ENDING = Cell C4
01/01/01 = Cell E4 or weDate
Or better yet I cannot save the file with a "/" in the name. So I need to change the "/" to a "-" before it suggests the name.
I tried changing the format of the date to show as mm-dd-yyyy, and it does show it as that but if you activate the cell that it's in (E4) then in the formula bar it shows mm/dd/yyyy.
Is there a way I can change the slash to a dash or try and grab the date as a text instead of the date???