+ Reply to Thread
Results 1 to 7 of 7

Requesting macro to either alternate page number orientation, or keep the same

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Requesting macro to either alternate page number orientation, or keep the same

    Admin Sheet has a drop down menu in A18 with either single sided pages or double sided pages. Journal has page numbers that are currently alternating left and right for even and odd, so if they were printed out double sided, the page number always be on the outside of the page as they sat in a binder.

    I need a macro that will adjust the page numbers to all far right alignment in the footers of Journal sheet if single sided pages are selected in Admin Sheet A18.

    If double sided sheets is selected, it needs to make odd page numbers far right orientated and even page numbers far left orientated.

    Thank you so much.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-23-2020
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    24

    Re: Requesting macro to either alternate page number orientation, or keep the same

    Place this in the VBA code for the sheet you want to do that with

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Requesting macro to either alternate page number orientation, or keep the same

    I named the macro Align_Page_Numbers and it wouldn't work for me, sorry, I am a newb to programming.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-23-2020
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    24

    Re: Requesting macro to either alternate page number orientation, or keep the same

    i did realize this was a cleaner method not by much but removes some code. just put this in the VBA code for the Worksheet labeled "Journal" or what ever you are going to call it

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-23-2020
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    24

    Re: Requesting macro to either alternate page number orientation, or keep the same

    Quote Originally Posted by Butcher1 View Post
    I named the macro Align_Page_Numbers and it wouldn't work for me, sorry, I am a newb to programming.
    no need to create a macro this will set the page numbers when you click the journal sheet

  6. #6
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Requesting macro to either alternate page number orientation, or keep the same

    Thank you.

  7. #7
    Registered User
    Join Date
    10-23-2020
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    24

    Re: Requesting macro to either alternate page number orientation, or keep the same

    glad to help

+ 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. page orientation
    By Delm in forum Excel General
    Replies: 1
    Last Post: 05-14-2018, 04:44 PM
  2. Page Orientation via VBA
    By wedzmer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2015, 08:38 AM
  3. Macro Ends When Changing Page Orientation
    By danderson2692 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 12:52 PM
  4. Changing page orientation in a macro
    By Peanuts890 in forum Excel General
    Replies: 1
    Last Post: 07-27-2010, 03:48 PM
  5. Page orientation incorrect
    By tkinsella in forum Excel General
    Replies: 2
    Last Post: 12-22-2009, 07:56 PM
  6. Change Page Orientation
    By LilyMarie in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2009, 05:33 AM
  7. [SOLVED] Page Orientation
    By Karen in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 04:00 PM

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