Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    May 2005
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Back Button on Userform in Word XP (Word XP - VBA)

    I am trying to add a back button to the 3rd page of a 3-page multipage on my Userform to allow the user to go to the previous tab. I have added a command button and am using the click event. I have read everything I can see that might be related on the Lounge, as well as the Net. I thought this would be a simple thing to do, but haven't been able to accomplish it yet. It seems that the Back/Next/Previous buttons are common in Access; however, I am trying to do this for a Word form. If anyone has a simple solution, I'd appreciate the help.

    Any assistance is greatly appreciated. <img src=/S/clown.gif border=0 alt=clown width=15 height=15> Thanks. Penni

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Back Button on Userform in Word XP (Word XP - VBA)

    Assuming that you have used a MultiPage control, the code is the same as the code you would use in Access to activate the previous page of a tab control:
    <code>
    With Me.MultiPage1
    If .Value > 0 Then
    .Value = .Value - 1
    End If
    End With
    </code>
    where MultiPage1 is the name of the control. (The standard navigation buttons on an Access form are used to move from record to record, not from one tab page to another).

  4. #3
    Star Lounger
    Join Date
    May 2005
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Back Button on Userform in Word XP (Word XP - VBA)

    Worked like a charm!! Thanks, Hans.

    <img src=/S/clown.gif border=0 alt=clown width=15 height=15> Penni

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •