Results 1 to 9 of 9

Set Print Area macro Code

Threaded View

romandotcom Set Print Area macro Code 06-20-2012, 01:09 AM
TMS Re: Set Print Area macro Code 06-20-2012, 01:19 AM
romandotcom Re: Set Print Area macro Code 06-20-2012, 01:26 AM
TMS Re: Set Print Area macro Code 06-20-2012, 01:28 AM
romandotcom Re: Set Print Area macro Code 06-20-2012, 02:10 AM
Trebor76 Re: Set Print Area macro Code 06-20-2012, 01:40 AM
romandotcom Re: Set Print Area macro Code 06-20-2012, 02:12 AM
Trebor76 Re: Set Print Area macro Code 06-20-2012, 02:50 AM
romandotcom Re: Set Print Area macro Code 06-21-2012, 12:09 AM
  1. #1
    Forum Contributor
    Join Date
    05-31-2012
    Location
    Dhaka, Bangladesh.
    MS-Off Ver
    Excel Office 365
    Posts
    100

    Question Set Print Area macro Code

    Hi,
    I need a macro code. "TOTAL VALUE" will appear in column A but in different row, some times 28, or 29 or 26 or 30 even 40.Is there any macro code so that macro will set print area till the row containing "TOTAL VALUE", so its mean print area will be set column A to E and row will be 1 to till "TOTAL VALUE" containing row. I attached a sample file to make clear my query. I have code but row is fixed. But my requirement is different in case of row. Please help me for this macro code.

    Sub Set_Print_Area()
    '
    ' Set_Print_Area Macro
    '
    ActiveSheet.PageSetup.PrintArea = Range("A1", Range("E40").End(xlUp)).Address

    End Sub


    Thanks
    roman
    Attached Files Attached Files

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