+ Reply to Thread
Results 1 to 4 of 4

Put a dialog box in a macro

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    23

    Put a dialog box in a macro

    Hi all

    I want to run simple macro, where it copies a sheet into another new workbook. I want it to prompt the user to choose a specific sheet in the workbook to copy.

    See below basic macro, at the moment its pointing to a particular sheet, I want the user to enter 04-07-13 then say OK and macro continues.

    Sub Macro2()
    '
    Sheets("04-07-13").Select
    Sheets("04-07-13").Copy
    Range("A1").Select

    Windows("xxxxx xxxxx TEMPLATE.xlsm").Activate

    End Sub

    Many thanks, John

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Put a dialog box in a macro

    Request the tab name as a string:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Put a dialog box in a macro

    something like this

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    04-14-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Put a dialog box in a macro

    Great thank you .... Andy & Jakobshavn ....

+ 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