Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default ActiveWorkbook.SaveAs Format(Date, mmddyy) & .csv

Using Excel 2007 I'm getting an error message.


ActiveWorkbook.SaveAs "C:\Users\Michael Guergawi\Documents\ & Format(Date,
mmddyy) & .csv


what Am I missing?

Thanks in advance



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default ActiveWorkbook.SaveAs Format(Date, mmddyy) & .csv

Try the below...The file format is to be specified

Dim strFile As String

strFile = "C:\Users\Michael Guergawi\Documents\" & _
Format(Date, "mmddyy") & ".csv"

Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=strFile, FileFormat:=xlCSVMSDOS
Application.DisplayAlerts = True

If this post helps click Yes
---------------
Jacob Skaria


"LuisE" wrote:

Using Excel 2007 I'm getting an error message.


ActiveWorkbook.SaveAs "C:\Users\Michael Guergawi\Documents\ & Format(Date,
mmddyy) & .csv


what Am I missing?

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default ActiveWorkbook.SaveAs Format(Date, "mmddyy") & ".csv"

Would you like to share with us what the error message says?


"LuisE" wrote in message
...
Using Excel 2007 I'm getting an error message.


ActiveWorkbook.SaveAs "C:\Users\Michael Guergawi\Documents\" &
Format(Date,
"mmddyy") & ".csv"


what Am I missing?

Thanks in advance





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default ActiveWorkbook.SaveAs Format(Date, "mmddyy") & ".csv"

Thanks I just did what Jacob suggested and it worked

"JLGWhiz" wrote:

Would you like to share with us what the error message says?


"LuisE" wrote in message
...
Using Excel 2007 I'm getting an error message.


ActiveWorkbook.SaveAs "C:\Users\Michael Guergawi\Documents\" &
Format(Date,
"mmddyy") & ".csv"


what Am I missing?

Thanks in advance






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
saveas ActiveWorkbook.SaveAs Filename:=Range("A1").Value DarrenL Excel Programming 4 April 18th 09 07:54 AM
ActiveWorkbook.SaveAs Little Penny[_3_] Excel Programming 2 January 16th 08 02:23 AM
Help with ActiveWorkbook.SaveAs Martin X. Excel Programming 3 August 15th 07 02:15 PM
ActiveWorkbook.SaveAs franks Excel Programming 6 August 6th 07 10:04 PM
activeworkbook.saveas - saving format changes tk3 Excel Programming 3 August 2nd 04 05:14 PM


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"