+ Reply to Thread
Results 1 to 7 of 7

continue code

  1. #1
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690

    continue code

    hi gents

    at the moment i have a piece of macro code that asks a question "have you done system?"
    if i click yes it continues nicely
    but if i click no it then takes me to the sheet that i need to enter the system number.
    i then click another button that takes me back to the main page and asks the same question again. i obviously then click yes and it works really nicely.

    basically when i click no it takes me to the sheet i need but instead of clicking the button that takes me back is there a piece of code that will just let the macro carry on?

    regards

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Is the input range a specific range?
    Can you use an input box to input the data instead of going back to the sheet?
    You are not giving us much to work on, lets see the code.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    If you are halting your code to allow user intervention you will need to alter your code to take this into account.

    You can use a public variable to store the state of the macro execution.

    This is only pseudo code.
    Please Login or Register  to view this content.
    If you need more help you will need to, as Dave points out, provide more information.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    thanks for the response guys
    here is the code
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    bump bump bump please

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Try this, although if the user may not have selected the system of delivery when the code is run for the second time.

    Is there no way you can check that the delivery system has been chosen?

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    hi andy

    willc heck this when i get home
    thanks for the reply
    basically there are only a couple of users for this form so thats not really an issue

+ 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