Creating a Back/ Previous button

Hello,
I have a VBA program which includes Userforms with 'next' and 'back' buttons. Some of the 'Next' buttons from different Userforms take the User to the same Userform, so my problem is how do I get the back buttons to take the user back to the form they were
previously viewing?
I have used Userform.Hide and Userform.Show for the Next/Back buttons so far.
Thanks in advance,
Christian Taylor

It's not clear if your Next/Back forms are fixed, ie hardcoded, or variable but already open
' if fixed
Me.Hide
UserFormX.Show
' if variable assuming already loaded
Dim uf As UserForm
For Each uf In UserForms
If uf.Name = "UserFormX" Then ' case sensitive
Me.Hide
uf.Show
Exit For
End If
Next
' in your close-all / quit button
' ensure all forms are unloaded
Dim i As Long
For i = UserForms.Count To 1 Step -1
Unload UserForms(i - 1)
Next

Similar Messages

  • Creating Dynamic Next/Previous Buttons

    Hello,
    I am a total noob to flash, I'm not new to programing though, I am no expert when it comes to programming, but I do know the basics,  what I am trying to do is to make a slideshow with navigation buttons, I have the slideshow itself built, I am just having trouble getting the buttons to work.  For the "Next" button this is what I have:
    btn_next.onRelease = function() {
              gotoAndStop(_root._currentframe + 100);
    And the error I get is "Access of undefined property _root."  I don't know how to correct this, could somebody please help me out or at least point me in the right direction?  I would greatly appriciate any help at all.

    What you probably need to do is to go into your Flash Publish Settings and change them to publish for Actionscript 2.0.
    Either that or use Actionscript 3 code instead...
    btn_next.addEventListener(MouseEvent.CLICK, move100);
    function move100(evt:MouseEvent):void {
              gotoAndStop(currentFrame + 100);

  • ActionScript 2 issues: previous button not working

    Hello,
    I am trying to create a slideshow in Flash CS4 using ActionScript 2.
    I have imported "pause" and "play" buttons from the libraries, and I have created "next" and "previous" buttons by using the PolyStar tool.
    Here is my problem: The "previous" button is not working. However, the other buttons (even the "next" button, which only really has the opposite code) do work.
    I am writing all of my code in the frames, which probably isn't the best idea, but it would be hard for me to change now.
    Code (an example code frame)(currently on the 1st frame):
    prev.onPress = function(){
    gotoAndStop("14");
    begin.onPress = function(){
    play();
    pause.onPress = function(){
    stop();
    next.onPress = function(){
    gotoAndStop("2");
    previous.onPress = function(){
    gotoAndStop("14");
    "prev" is an instance of "previous". "begin", "next", and "pause", are instances of a play button, "next", and a pause button. I am using frame labels that go from "1" to "14".
    What am I doing wrong?
    feffer1218

    Thanks for your advice, but it didn't work.
    1. I changed all of my frame labels so that they have the letter "p" in front of all of them. (ex: "p1" instead of "1")
    2. I commented out the "previous.onPress" code.
    2 examples of code:
    //p1 (first photo)
    prev.onPress = function(){
        gotoAndStop("p14");
    begin.onPress = function(){
        play();
    pause.onPress = function(){
        stop();
    next.onPress = function(){
        gotoAndStop("p2");
    /*previous.onPress = function(){
        gotoAndStop("14");
    //p2 (second photo)
    begin.onPress = function(){
        play();
    pause.onPress = function(){
        stop();
    next.onPress = function(){
        gotoAndStop("p3");
    prev.onPress = function(){
            gotoAndStop("p1");
    I don't know what I'm doing wrong! The Properties window says that "prev" is an "instance of: previous."
    Any ideas? Thanks for the attempt, though.
    feffer1218

  • Creating next/previous buttons problem

    I am creating next & previous buttons on my main scene. I have created a scrolling photo gallery as well as a random button to randomly select images. I have a photos layer that has 15 images tagged in the AS "img1" "img2"....hopefully this all makes sense so far.
    What script can I use to easily create a next_btn. This is what I currently have
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    "img"+1 goes to the "img1" however I would like it to go to the next img instead of always go to img1. I've tried _currentframe+10 (images are 10 frames apart) and some others but cannot seem to get it to work.
    I would like this to work along with the random button so that when a random image is clicked, the person can click the next button and get to the next image.
    Current script in...
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop("img"+1);
        photos.fader.gotoAndPlay(2);
    if you need any clarification let me know! thanks!

    i'll try to explain this simplier.
    scene 1 (layers)
    inside layers
    AS
    next back btn
    random btn
    photos
    displays images when clicked on from photo gallery
    scrolling photo gallery
    photo gallery + buttons for gallery
    i'm looking to create a simple < > prev and next image buttons.
    My current script from above (original post) hasn't worked out.
    random_btn.onRelease = function(){
        var picNum:Number
        picNum = Math.ceil(Math.random()*15);
        photos.gotoAndStop("img"+picNum);
        photos.fader.gotoAndPlay(2);
    next_btn.onRelease = function() {
        photos.gotoAndStop(picNum+1);
        photos.fader.gotoAndPlay(2);
    I'll take out the random_btn if need be to create just a regular next button and previous button. (i'll worry about tracking the scrolling image gallery later...one issue at a time)
    Thanks again.

  • Back/previous page button?

    Hi All,
    I'd like to add a back/previous page button to my website to make it more user friendly as its going to be a fairly big site, can anyone advise me on the best way to do this?
    Thanks in advance!

    Many ways to do this trivial task.  These buttons are simple hyperlinks and you can use background images to make them visually attractive.  But try this simple method :
    1) Set up your HTML code like this:
    <input class="general" type="button" value="Back" onClick="window.location='http://www.google.com' "/>
    <input class="general" type="button" value="Top" onClick="window.location='http://www.adobe.com' "/>
    <input class="general" type="button" value="Next" onClick="window.location='http://www.microsoft.com' "/>
    2) Next create your styles like this:
    .general {
    width: 90px;
    float: left;
    margin-right: 20px;
    3) The final product will look like this:
    Hope this gets you started.

  • How can i create an album with chose category list and next/previous button

    hello guys im working on a project for my uni i finished the whole website but one thing is missing
    i need to create a photo album with next and previous button, with choosing a category and inside each category i have like 5 pictures and i can change with the next/previous buttons to see another picture of the  same category.
    Please see the picture below to see what i mean.
    some told me it needs flash but i dont know how to work on it :S so plz if anyone can help me
    thank you

    Dear Mr. Murphy,
    thank you for your help.
    Actually i have tried to search for a tutorial and i found that one that was very helpful and gave me the half solution. the part i found and it worked with me is the part of the next and previous buttons and moving from an image to another.
    SO the part i still need is the list so when i click on a category i get the pictures of the chosen category, I had the idea of create a flash for each category alone and maybe i will be able to add them all together.
    But i guess it's too much work and there must be a way where i can make it all in one flash file.
    If you have any idea let me know please, thank you again for your help and i'm trying to search for the AS3 image gallery as you told me.
    Regards

  • How to Create a Back button in Flash

    Hi all,
    I need to create a back button for my flash app. It doesn't
    need to be connected with Browser. It just need be able to remember
    what frame they were viewing, and bring them back.
    Is there any event I can use for this? I made an variable
    called "visited:Number" and change it on every frame, but this
    won't work. Once the user enters a new frame, the original visited
    number is replaced by current already. I don't know how to hold
    that number, before they leave the current frame.
    Can anybody give me little clue/direction please?
    Thank you...

    Hi
    I believe that you should look at the Forms functionality for UCM . Under Content Management - Web Form Editor will show up the editor where in you can add buttons and attach functionalities to it . With UCM 11g this is not available thus you might need to use AJAX to build the requirement .
    Thanks
    Srinath

  • Can i create a back button in ibooks author?

    I know i can go to a videofile on for examlpe pag 20 making a textlink on page 1. but is it possible to create a back link to the page where i came from?

    K T, you're not quite right on this and ibooks does have a web-like back capability. if readers call up the top menu (by tapping a blank part of any page) and then click on the ribbon in the top right corner, there's a prominent option called "recently viewed" that takes them back to the page they were just on. This works exactly like a Back button or back JavaScript on a web page. it solves the problem with returning to your spot after u hit a bookmark link to a distant spot in an iBook.
    okay, so this functionality a) exists and b) is in the core ibooks menus, so why the eff can't apple give us a way to insert a far more user-friendly back button on the pages? please kick this up. it's b.s.
    j.b.

  • Create tooltip on Previous and Next button in ADF UI

    Hi,
    I have a question on how to create tooltip on Previous and Next button in ADF UI.
    The tooltip for Previous button shows previous record id and previous record name.
    The tooltip for Next button shows next record id and next record name.
    How can you get previous and next record info easily when you are on the current record?
    Thanks,
    Jenny

    Hi,
    which ADF UI, Swing or Faces ? Note that on Faces the tootip is set cia "shortDesc" property
    Frank

  • Create a back button in quiz

    Hi -
    I'm pretty new to Adobe Captivate but I need to create a quiz pretty quickly which I want to import to Flash.
    When clicking on a button in Flash I want the quiz to open up which works fine but as soon as I close the quiz
    I would like to go back to my main page. Can I create a button in Captivate which goes back to my main page?
    Thanks alot for your help.
    Franni

    Hi Franni
    Sorry, but it isn't exactly clear what you hope to accomplish. You mention creating a Back button, but then mention importing the content to Flash. One might assume that you want the Back button to jump to some location inside Flash.
    Perhaps your question makes sense to someone experienced with Flash, but I'm going to guess it may not. Hopefully one of our "Flash savvy" folks will see this and offer comments.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Create a back button - need help

    Hello JHS Team,
    I am using JHeadStart 10.1.2.
    I need to create a back button in a specific UIX page on my application.
    I'm new to JHeadstart and I really need some help from you. Can anyone help me???
    Thanks

    Atena,
    You can add the button to your page post-generation, using the UIX Visual editor. Make sure you uncheck the Generate Pages switch for this group in your application structure file to protect your change upon regeneration.
    May be an unsollicited advice:
    I understand that you are new to ADF, JDeveloper and UIX. UIX is superseded by ADF Faces in JDeveloper 10.1.3, and based on the JSF standard.
    UIX will not be further developed, JSF and ADF Faces are the technologies to use going forward. Therefore, I would recommend to consider to switch for your application development to JDeveloper and JHeadstart 10.1.3. For JDeveloper/ADF 10.1.3, there is an excellent developers guide available, that provides a lot of useful information, in particular when you are new to the ADF Framework.
    Note that a JHeadstart 10.1.2 UIX generated application can easily be migrated to 10.1.3, you will only need to redo your post-generayion changes. So may be you can try to stick (close) to 100% generation for now, and migrate to 10.1.3 at your earliest convenience.
    Steven Davelaar,
    JHeadstart Team.

  • Robohelp 10 unable to create next/previous buttons in new TOC folder

    Suddenly I'm unable to create next/previous buttons in new TOC folder. I create folder, add pages, go to Browse sequence editor, create new Browse Sequence, generate Multiscreen HTML & when it's through no browse sequence in shown ie no next/previous buttons. Help?

    Hi there
    Silly question here. If you double-click the Responsive recipe in your Single Source Layouts folder, then click the Content section in the left panel, is/are your Browse Sequence(s) selected?
    If not, perhaps that's the problem?
    Cheers... Rick

  • How can I get rid of by back/foward buttons and move my url bar to the right of my tabs, as I had in the previous version of firefox?

    Before I updated Firefox, my tabs were on the same line as the search/url bar, and I didn't have the back/forward buttons. I liked the simple design I had, but now it doesn't seem like I can go back to that setting.

    There is an extension which gives you a lot of control over your toolbar layout. It is described and linked in this article: [[How to make the new Firefox look like the old Firefox]]. Can you get the result you're looking for?

  • Previous Page ("Back" browser button)

    Hi,
    I have this scenario: a Flex app calls (using a menu) another Flex app passing some parameters; the new Flex app shows in the SAME broser window some results (based on those parameters). Now I want to add a Button component in the called app to behave the same as "Back" browser button, I mean to return to the caller application.
    How can I accomplish that? I would like to point out that the called app cannot be open in a new window (must be the same one) and the browser "Back" button cannot be used (even if it is functional).
    Any help is very appreciated, as usual... 

    IMHO,
    I would completely turn off history manager,
    It introduces DeepLinking code and overrides History Functionality of the browser which is not needed in your example, .
    instead I would
    use simple javascript to navigate back and forwards which can be called from flex app via EI(ExternalInterfaces)
    JS Example:
    http://www.pageresource.com/jscript/jhist.htm
    ExternalIntercaes Example:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface .html#includeExamplesSummary

  • Next and previous button

    Hi,
    Just got back from the APEX class. Very new at this.
    I just created two button called PREVIOUS AND NEXT. When I press PREVIOUS or NEXT button I want it to go to previous or next record within the same form page.
    What do I have to do to make it functional in APEX. I mean, what code,processes is needed and how to do it.
    I would appreciate it if someone has done it and maybe show me the code/process of how to do it. Maybe they can share their application on apex.oracle.com.
    Please let me know.
    Appreciate a lot
    Munish
    Edited by: user4848861 on Sep 4, 2009 8:37 AM

    Hi,
    When I first come to a page, I show an interactive report. Interactive report has an edit button.
    When user clicks on the edit button, it goes to a form where user can edit the record.
    Once the user edits the record, they want to go to the next or previous record. What needs to be done on next and previous button to accomplish that.
    For eg. If I am on record 1, when I press NEXT I should go to record 2.

Maybe you are looking for

  • Template and Spawning

    Hi, I have Adobe Acrobat 8.  I need to make a form I created into a template and then put in a button option to spawn.  I have a book that tells how to do it in Adobe Acrobat 9, but nothing for Adobe Acrobat 8.  Can anyone help?

  • How to set threshold level JPG images

    Please I need help with setting the right threshold value for my images. I am new with Photoshop. I need to interpret images consisting of sand oil and water in a glass medium. I need to calculate in pixels the volume of each phase (oil and water) wi

  • How to set up an internet radio with itunes?

    I want to set up an internet radio so that when I play musics from itunes, my friends could share to enjoy. I guess this needs to stream from itunes and then broadcast. Nicecast would do the job. But it is not free. Is there another solution? Thanks.

  • MacBook Air Mid '11 Fan Issue

    This morning, I downloaded SMC Fan Control because my mac was running really hot after running Skype and some other programs at once. I decided I didn't want it, so I uninstalled it, and it said the fans would return to normal. After restarting my co

  • Adobe CC Availability in Panama

    Since I searched / contacted and got no answer I'll ask here: I have a design company in Panama, and we are willing to purchase some "Adobe Creative Cloud" for Teams accounts. The issue: Not availability online for the country, and resellers' fees he