+ Reply to Thread
Results 1 to 3 of 3

Pausing a MACRO

Hybrid View

accur8ly Pausing a MACRO 08-02-2007, 11:48 PM
rylo Hi Use the... 08-03-2007, 12:34 AM
accur8ly That pretty much did the... 08-03-2007, 01:06 AM
  1. #1
    Registered User
    Join Date
    07-02-2007
    Posts
    8

    Pausing a MACRO

    I want to create a Macro that allows me to pause the Macro for a user input.
    Specifically what I need to do is have the Macro start by asking the user to "select a range" ( hence the pause) then the Macro will copy that range, paste into another range where some formulas work on the data creating a data array, sort the array, select the print area, and then print the data as a certification form.

    The only thing I can't do is get the Macro to start by asking for a range to be selected and resume.

    Any ideas?? Thanks --mark

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Use the application.inputbox approach.

    Set myrng = Application.InputBox(prompt:="Select range", Type:=8)
      MsgBox myrng.Address
    If you run the code above, it will ask you to select a range. Use the mouse to select a range, then continue.


    HTH

    rylo

  3. #3
    Registered User
    Join Date
    07-02-2007
    Posts
    8
    That pretty much did the trick. I had to modify some but you got me pointed the right direction -- Thanks!

+ 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