+ Reply to Thread
Results 1 to 3 of 3

Setting print area by vba

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    44

    Setting print area by vba

    I have looked for a way to set the print area of a worksheet through vb.


    I would like it to find the last row of the worksheet and set it to be printed.

    Some of the examples take it beyond the last row of data, because the the code that may be in the empty cells.

    HTML Code: 
    That took me beyond the last row.

    Any suggestions

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Setting print area by vba

    Do you mean there are formulas below the 'data'?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-04-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Setting print area by vba

    Formulas in the empty cells
    like: =C1&" " & D1

    Codes the joint two cells together after data is placed in column C and column D

    This was copied past the last row so the entries that would be added would automatically add them together.

    Sorry if that is not clear.

+ 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. [SOLVED] setting up the print area
    By Gina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2006, 01:15 PM
  2. setting print area
    By Nick Smith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2006, 05:45 AM
  3. [SOLVED] Setting the print area
    By Patch61 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2006, 11:45 AM
  4. Print Area:What would be the code for setting the print area
    By wammer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2005, 02:05 AM
  5. [SOLVED] Setting Print Area
    By Defoes Right Boot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2005, 08:06 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