Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
chris100
 
Posts: n/a
Default Excel - Hide Column/s or Change Font color Only for printing


Hi all,

Desperately need help on this....you'd think other people would have
the same problem and it'd be easy to find, but all you get is hide and
unhide column. This is too slow for me.

For an Invoicing system i need to hide prices that the salesman can
look at on screen, but not be shown when printed. If hiding and
unhiding columns or changing fonts whenever an order is made, i'm sure
mistakes will happen.

So all i need is something that will hide or change the colour of
certain cells or a column/s when the print button is
clicked...simple.... ;¬)

Any help much appreciated.

please, please please and pretty please


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=386633

  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Check out "Custom Views" in the Help files.

Sounds like that's just what you're looking for.

Each view can have it's own, separate print range. plus hide columns and
rows automatically as each view is invoked.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"chris100" wrote in
message ...

Hi all,

Desperately need help on this....you'd think other people would have
the same problem and it'd be easy to find, but all you get is hide and
unhide column. This is too slow for me.

For an Invoicing system i need to hide prices that the salesman can
look at on screen, but not be shown when printed. If hiding and
unhiding columns or changing fonts whenever an order is made, i'm sure
mistakes will happen.

So all i need is something that will hide or change the colour of
certain cells or a column/s when the print button is
clicked...simple.... ;¬)

Any help much appreciated.

please, please please and pretty please


--
chris100
------------------------------------------------------------------------
chris100's Profile:

http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=386633


  #3   Report Post  
ScottO
 
Posts: n/a
Default

Assuming that your secret columns are F & G, you've already set up your
print area and other print settings, and that you want to unhide after
printing ...

Put a button on the sheet labelled "Print"
Assign the following macro to the button

Sub HideAndPrint()
Application.ScreenUpdating = False
Columns("F:G").Hidden = True
ActiveSheet.PrintOut Copies:=1
Columns("F:G").Hidden = False
Application.ScreenUpdating = True
End Sub

Click the print button to print.

Rgds,
ScottO

"chris100" wrote in
message ...
|
| Hi all,
|
| Desperately need help on this....you'd think other people would have
| the same problem and it'd be easy to find, but all you get is hide and
| unhide column. This is too slow for me.
|
| For an Invoicing system i need to hide prices that the salesman can
| look at on screen, but not be shown when printed. If hiding and
| unhiding columns or changing fonts whenever an order is made, i'm sure
| mistakes will happen.
|
| So all i need is something that will hide or change the colour of
| certain cells or a column/s when the print button is
| clicked...simple.... ;¬)
|
| Any help much appreciated.
|
| please, please please and pretty please
|
|
| --
| chris100
| ------------------------------------------------------------------------
| chris100's Profile:
http://www.excelforum.com/member.php...o&userid=25166
| View this thread: http://www.excelforum.com/showthread...hreadid=386633
|


  #4   Report Post  
chris100
 
Posts: n/a
Default


Thanks for the help. I like ScottO's method a bit more. Just one
question....considering that i'm not a programmer.

How do you adapt the script when the columns are not next to each
other. e,g "B" and "D" without covering "C".

Thanks


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=386633

  #5   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Separate them:

Columns("B").Hidden = True
Columns("D").Hidden = True


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=386633



  #6   Report Post  
chris100
 
Posts: n/a
Default


Thanks very much ScottO, Ragdyer and Mangesh.

The Macro works great - very handy for this type of thing.

Chris


--
chris100
------------------------------------------------------------------------
chris100's Profile: http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=386633

  #7   Report Post  
RagDyeR
 
Posts: n/a
Default

The one advantage "Custom Views" has over code,
For non-programmers like you and me ... revisions ... minor and/or major,
are more easily attainable.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"chris100" wrote in
message ...

Thanks very much ScottO, Ragdyer and Mangesh.

The Macro works great - very handy for this type of thing.

Chris


--
chris100
------------------------------------------------------------------------
chris100's Profile:
http://www.excelforum.com/member.php...o&userid=25166
View this thread: http://www.excelforum.com/showthread...hreadid=386633


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the color of all series in an excel chart in one go. Marielle Charts and Charting in Excel 2 May 3rd 23 07:45 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Moving Excel Charts into Word Documents: font sizes change Sam Charts and Charting in Excel 4 June 24th 05 09:01 PM
Excel should allow me to change text color & font within tabs. hw Excel Discussion (Misc queries) 1 February 17th 05 10:52 PM
How to change the color of all series in an excel chart in one go. Mz2 Charts and Charting in Excel 1 January 20th 05 01:07 AM


All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"