If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Printing in Exce;

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-10, 05:24
Excel143 Excel143 is offline
Registered User
 
Join Date: Nov 2010
Posts: 1
Printing in Exce;

Hello everyone,

Need some help in Excel printing function.

I've a excel file containing information of student data. Now, I need to print the file datewise meaning when print the file, it should print datewise data.

Right, I have to filter data datewise and then adjust one date data on a page (as i need one date data on single page) then i'll print one by one.

Any solution for this, where i just run command batch printing datewise should be done?

Example:
STD Code STD Name Contact No Join Date
STD-001 Sheraz 0306-5857074 23-11-2010
STD-002 Riaz 0300-9527261 22-11-2010
STD-003 Umair 0346-5812010 23-11-2010
STD-004 Khalid 0306-5542404 24-11-2010
STD-005 Kamran 0544-649082 22-11-2010
STD-006 Saad 0333-5798336 22-11-2010
STD-007 Tahir 0300-9588971 24-11-2010







Regards,
Waqas
Reply With Quote
  #2 (permalink)  
Old 11-16-10, 18:42
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
As far as I know there isn't a built-in way to do this so automation of the task would involve some VBA. The two most obvious approaches (neither of which I have tried/tested) would be:
  • Sort by Join Date
  • Loop through the dates and add page breaks each time the date changes
  • Print (with column headers repeating on each printed page)
or, as you suggest -
  • Load the unique date values into an array
  • Loop through the array, and on each iteration:
    • filter column D by the array element
    • Set a single page print area to visible cells
    • Print
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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