+ Reply to Thread
Results 1 to 4 of 4

Print all columns and certain rows

  1. #1
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Print all columns and certain rows

    Hi All,

    I have a print button and have defined a start row (srow) and end row (erow) per the code below. What arguments do I use within .printout to restrict the print to these rows? All the guides I have seen so far have predefined print areas so I don't know how to handle this variable.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated, thanks!

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Print all columns and certain rows

    One way you can do is to set the print area. Assuming your last column ends at column G.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Print all columns and certain rows

    Hi JieJenn,

    I've tried your suggestion but I'm getting an error, it looks like it's not reading the range correctly. I've attached an example sheet containing the problem. Any ideas?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Print all columns and certain rows

    Got it! I used the following:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  2. Combining multiple rows from 2 columns into sorted columns depending on 1st columns value
    By Dexamphetamine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2013, 10:00 AM
  3. Replies: 15
    Last Post: 12-06-2012, 01:07 PM
  4. [SOLVED] Swapping rows for columns and columns for rows in a large database
    By Bloomingdales in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2012, 06:06 PM
  5. Replies: 0
    Last Post: 11-28-2007, 06:46 AM

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