+ Reply to Thread
Results 1 to 1 of 1

Jump codes based on the input in a user form

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Post Jump codes based on the input in a user form

    Can I jump codes based on the response in a userform? I have several reports to format. What I want is, When I run a macro the user form with text box would pop up. And the end user would enter the number of reports to be formatted. If the user enters 6 I want the macro to jump to a code ( Any sub which I have created). Or if it says 5 it should to jump to another.

    These codes have match index function, so I would be using a standard name to refer to these reports. Say Report1, Report2 etc.

    Let me know if this is kind of a weird idea.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Jump codes based on the input in a user form

    Not a weird idea, just not very well explained. You can pretty much do you want but for us to help you, you'd need to provide a lot more detail. Sample workbook, typical data, code, process outline, expected results ....

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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