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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting a file as excel within a macro

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I am trying to use a macro to export an impromptu v6 report as an excel file. I can get the code to work for exporting as a PDF format but not as excel.

Here is the code I am using.

DestPDFName = "d:\test\test.xls"
objImpRep.ExportExcel DestPDFName

It reports
test2!SendMe(54) - R91 "Object value is set to Nothing"

Any help please

Paul
 
This is a piece of the code we use for a macro button. I am not sure if it what you are looking for but...hope it helps.

Set ImpRep=ImpApp.OpenReport("z:\biweekly\PT w vac sick pay.imr")
ImpRep.ExportExcel("z:\biweekly\PTw vac sick pay.xls")
ImpRep.CloseReport
 
Thanks very I have now managed to sort it out.

Thanks

Paul
 
There are actually two type of "Save As Excel" export. The one mentioned above gives you a raw export of each data element in the query. The other option, new in Impromptu 6 allows a WYSIWYG export (for the most part - page headers and footer do not export). Unfortunately, their is no API macro call for the second type, but you can call it using SENDKEYS to emulate keyboard menu selection.

Regards,

Dave Griffin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top