+ Reply to Thread
Results 1 to 3 of 3

Macro no longer working?

  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    England
    MS-Off Ver
    2016 (Mac)
    Posts
    149

    Macro no longer working?

    Hello Everyone,

    The below macro was working with no problem at all but for some reason no longer works?
    Nothing has changed and I am now wondering if there is a more reliable way of writing this macro?

    The only thing that I can think that has changed is that the date has changed from one month to the next?
    This seems a bit odd but I really cannot think of what else could have caused this to change?

    Sub PrintPageSix()
    ActiveWindow.SelectedSheets.PrintOut From:=11, To:=11, Copies:=1, Collate _
    :=True
    End Sub

    Thank you very much for any help.

    Margate

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro no longer working?

    When you say no longer works, do you get an error message? What is it?

    Daft question - do you still have 11 pages in the worksheet?

    Can you upload an example workbook?

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    England
    MS-Off Ver
    2016 (Mac)
    Posts
    149

    Re: Macro no longer working?

    Hello yudlugar,

    After around 2 hours of trying to work out why the Macro has stopped working and pulling my hair out with frustration I turned away from the code and looked at the layout. It appears that someone has changed the page break's. Only leaving page # 10 as the actual page break. All other buttons did not work because they were not for page 10! Therefore when a button containing a macro for anything other than page 10 was pressed nothing would happen! Just as well I am patient with my staff! It turns out the button did not work because the printer had run out of paper. The staff thought it was the spreadsheet and messed with the page breaks when trying to fix it. They did not tell me that bit.....

    I will mark this tread as solved. Hopefully it may help someone else some day wasting the 2 hours I wasted not realizing that page breaks are still changeable even when the sheet is locked!

    Thank you very much for your willingness to help me,

    Margate.

+ 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