+ Reply to Thread
Results 1 to 6 of 6

Select rows depending on selection

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    UK
    Posts
    36

    Select rows depending on selection

    Once again had no idea how to title this. lol

    Right.

    I have a sheet with entries dated. With values next to them.

    From 1/11/08 to Whenever it ends.

    I would like to work out a function to select the activerow(depending on cell)
    and the 30 rows under it and then print them.

    Like a report almost

    This could be a button or anything, no pref on it ^^

    Thanks again!
    Last edited by Irprogram; 12-08-2008 at 03:47 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    try this macro

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    11-20-2008
    Location
    UK
    Posts
    36

    Smile

    Thats working great, but being the dittz I am I forgot..

    I need the "Heading" to show whenever I print. Being cells B1,C1 and so on.
    And is it possible for it to print landscape?

    (the rest of the project is not)

    My fault on this one ^^

    The macro is 100% correct tho. CHEERS!

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try this version

    It sets row 1 to be printed on each page
    It sets print area the same as the 1st version
    It sets page to Landscape
    Prints page

    Removes row 1 setting to be printed on each page
    Removes the set print area
    Changes page back to Portrait

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-20-2008
    Location
    UK
    Posts
    36
    Thanks alot! Mud, this is spot on

  6. #6
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Glad to have help solve your problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1