+ Reply to Thread
Results 1 to 2 of 2

Print after using macro to fill worksheet

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2007
    Posts
    53

    Print after using macro to fill worksheet

    Hello, bit of a strange one. Hopfully easy for someone.
    I am using some code that automatically retrieves a list of data using a cell value as a search criteria and then it populates my worksheet with all the relevant data I require. The problem I have is when it comes to printing. Because the data has been added via code/macro the print are does not automatically expand to include all the data (eg if you look in page break view, it has not moved to include the data added as it would do if the data was added maually)?
    The data inserted could be upto 100 pages long, but when I try to print it the page break is only part down page 1 and I then need to manually drag it down????
    Is there a way around this in the code? Has it got something to do with EnableEvents?
    The code in question is:
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Print after using macro to fill worksheet

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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