+ Reply to Thread
Results 1 to 4 of 4

VBA-Before_Print worked last week but now does not

  1. #1
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    VBA-Before_Print worked last week but now does not

    Hi.

    My workbook has over 30 sheets. Whenever the printer icon is pressed I need the active worksheet to hide columns L and K, print the sheet, then unhide the columns. This code worked perfectly last week but now it doesn't and I can't think of anything that's changed.The code is located in ThisWorkbook. I would greatly appreciate any help you could give me. Thank you.

    Please Login or Register  to view this content.
    Last edited by Royzer; 02-22-2012 at 11:14 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA-Before_Print worked last week but now does not

    You must have typed this into the VB Editor, use the right hand drop down in the workbook module

    Please Login or Register  to view this content.
    not
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Re: VBA-Before_Print worked last week but now does not

    That worked! Thanks RoyUK!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA-Before_Print worked last week but now does not

    Please mark the thread as solved


    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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