Using String Variablein Report Object Reference

A

Alan Z. Scharf

I wnat to use a string variable, strReportName, in the reference below
instead of the hardcoded current actual report name of 'rptGraph'.


Reports!rptGraphs![PerfGraph].Object.Application.Chart.Axes(1).TickLabelSpac
ing = 2

Can someone give an example of the syntax for that?

Thanks.

Alan
 
J

John Spencer

Perhaps the following option will work for you.

Reports("rptGraphs")!PerfGraph.Object.Application.Chart.Axes(1).TickLabelSpac
 
A

Alan Z. Scharf

John,

Thanks very much.

That may well work with a string variable in first paren.

I wasn't aware of that alternative format.

Regards,

Alan


John Spencer said:
Perhaps the following option will work for you.

Reports("rptGraphs")!PerfGraph.Object.Application.Chart.Axes(1).TickLabelSpa
c


Alan Z. Scharf said:
I wnat to use a string variable, strReportName, in the reference below
instead of the hardcoded current actual report name of 'rptGraph'.


Reports!rptGraphs![PerfGraph].Object.Application.Chart.Axes(1).TickLabelSpac
ing = 2

Can someone give an example of the syntax for that?

Thanks.

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top