+ Reply to Thread
Results 1 to 2 of 2

prompting user for macro parameter

  1. #1
    Registered User
    Join Date
    03-10-2005
    Location
    East Greenbush, NY
    Posts
    26

    Question prompting user for macro parameter

    I have a macro that does some formatting.

    I need to prompt the user at the beginning of the macro for the name of a data range.

    I would like to pass the answer they provide as a parameter to a function in my macro.

    Is there a way to create a message box at the beginning of the macro to solicit this input from the user?

    TIA!!!

    Heather.

    Heather Linsk
    h l i n s k @ g m a i l . c o m

  2. #2
    Registered User
    Join Date
    03-10-2005
    Location
    East Greenbush, NY
    Posts
    26

    Smile

    I was able to figure it out.

    rangeName = Application.InputBox(Prompt:="Enter range name:", Title:="Range Name", Default:="", Type:=2)


    H

+ 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