I'm trying to write some code that will activate a workbook that has today's date in it. I am able to save the workbook with the following line, but later I need to activate it after its been created. THis line saves the book:
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\All Users\Desktop\" & Format(Date, "yymmdd") & " Schwab Trades.csv", _
FileFormat:=xlCSVMSDOS, CreateBackup:=False
I essentially want to later write
Workbooks("Today's Date Schwab Trades").activate
but I can't seem to quite get the syntax correct. Help anyone?
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\All Users\Desktop\" & Format(Date, "yymmdd") & " Schwab Trades.csv", _
FileFormat:=xlCSVMSDOS, CreateBackup:=False
I essentially want to later write
Workbooks("Today's Date Schwab Trades").activate
but I can't seem to quite get the syntax correct. Help anyone?