+ Reply to Thread
Results 1 to 2 of 2

Run macro specified number of times (specified by user)

  1. #1
    Registered User
    Join Date
    10-23-2007
    Posts
    80

    Smile Run macro specified number of times (specified by user)

    Hello,

    I have a macro that 'inserts a new week' on a worksheet when the user clicks on a button. What I'd like from here is...

    - User clicks on a button
    - A message box pops up asking the user to specifiy how many weeks they require (ideally there'd be 10 checkboxes for 1 week through to 10 weeks and the user could just select one and click ok)
    - The macro runs however many times the user specified

    Is that something anyone can help with?

    Many thanks


  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Run macro specified number of times (specified by user)

    Hi lealea1982

    The attached contains a UserForm. You'll need to add your Code at the place indicated.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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