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

Help when printing rows and objects in Excel

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,819
JP
Hi All,
In VFP there is a "Print when" conditional when outputting to a a printed report.
I'm looking for something/some way similar to do this in Excel (Office 365 but as PC application, not browser based).
Is this possible?
There are some rows I only want to print (to PDF or to printed document) when a condition is true. (For example, I only want an image object to print when the currency type is JPY, I only want two rows to print when the currency type is JPY, for all other currency types I want to hide them).
Is this possible?


Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCAP, CDCP, CDCS, CDCE, CTDC, CTIA, ATS, ATD

"I try to be nice, but sometimes my mouth doesn't cooperate.
 
If you do not want rows 6 to 9 to be printed, can't you just do (with a little VBA):
[tt]
Rows("6:9").EntireRow.Hidden = True[/tt]

[ponder]

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson
 
That could work for my row issues.
What about an image?


Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCAP, CDCP, CDCS, CDCE, CTDC, CTIA, ATS, ATD

"I try to be nice, but sometimes my mouth doesn't cooperate.
 
Shapes have also .PrintObject property, if set to false, image is still visible, but not printed (also possible to set manually from UI, print object property in formatting object pane).

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top