Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default I need assistance getting VBA code to do the following...

SD,
Try recording a macro of you desired actions, view the code and see which
parts you need help with.
Look at the BeforePrint event and the code to filter a WS.

NickHK

"SD" wrote in message
...
I need to insert a code into an excel sheet that will do the following. I
need someone to completely spell out the code so I can just paste it into

the
editor.

The spreadsheet is size A1:G2000 (there are a few formulas in H, I, and J,
but they are NOT in any way causing the issue because the columns are
hidden). Due to cell formatting, when I print the spreadsheet it prints

ALL
2000 lines even though the cells are blank. The point of the spreadsheet

is
to be able to add line items into the 2000 lines (minus the repeating row
headings) when needed and ONLY print the completed lines, NOT the blank

ones
below.

I need a code that will:
When File|Print is selected it will filter out unused rows below so that

it
will ONLY print rows if there is information entered into column A of that
row.
Repeat rows 1:7 on every sheet.
Reset the filter so that the page re-displays correctly again once the
printing is done (unfilters)


Thanks in advance!!



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
CODE Assistance needed PLEASE please please N.F[_2_] Excel Discussion (Misc queries) 0 July 9th 07 08:36 PM
Assistance with code Please Greg B... Excel Discussion (Misc queries) 8 March 2nd 05 10:55 PM
Code Assistance (Paste Special) Tom Taetsch Excel Programming 1 October 31st 04 11:49 PM
Code assistance please JMay Excel Programming 3 September 4th 04 05:21 PM
VBA Code Assistance chryo Excel Programming 9 August 7th 04 12:57 AM


All times are GMT +1. The time now is 03:55 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"