If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel Macro Help?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-03, 10:30
FuzzyLogic FuzzyLogic is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Excel Macro Help?

Can anyone help me debug this section of code?

today = Format(Now, "ddmmmyy")
ActiveWorkbook.SaveAs Filename:="F:\folder\my_file_" & today & ".txt", FileFormat:=x1Text, CreateBackup:=False

I'm stumped
Reply With Quote
  #2 (permalink)  
Old 12-23-03, 11:59
pierrevbaexcel pierrevbaexcel is offline
Registered User
 
Join Date: Dec 2003
Location: Ottawa, Canada
Posts: 72
Re: Excel Macro Help?

Hi

This works:

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Pierre\Mes documents\Book1" & Day(Now()) & Month(Now()) & Year(Now()) & ".txt", FileFormat:= _
xlText, CreateBackup:=False

Many other free tips on
http://www.excel-vba.com





Quote:
Originally posted by FuzzyLogic
Can anyone help me debug this section of code?

today = Format(Now, "ddmmmyy")
ActiveWorkbook.SaveAs Filename:="F:\folder\my_file_" & today & ".txt", FileFormat:=x1Text, CreateBackup:=False

I'm stumped
__________________
A piece of data is like a brick
If you don't build anything with it
It is just a brick
www.excel-examples.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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