Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save as excel with date

Status
Not open for further replies.

jvaneert

MIS
Sep 10, 2002
18
NL
Hi All,
I am a newbie in macro's

I want to save a impromptu report as an excel file and save the date in the filename.
So each day i will have an export with the date in it.

So for example List 1 28 februari.xls, list 2 1st march.xls

Can someone please provide me with some macro code?

Regards and thanks in advance

Jules
 
These lines should give you a pretty good idea. You should be able to get the rest from the Cognos Documentation.

Code:
strFile = objImpRep.Name & "_" & Format(Date, "Medium Date")

objImpRep.ExportExcel (strFile)

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top