+ Reply to Thread
Results 1 to 2 of 2

Input for Macros

Hybrid View

  1. #1
    Sean H
    Guest

    Input for Macros

    Hi,

    I am trying to write a macro that will be used to update a file. I want to
    have some sort of stored input like you can in C++.

    something like
    input>> "what year is it?"
    input>> a

    ....or however the C code goes (its been a couple years).

    Is there any way to do this for an excel macro?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Sean,

    You can prompt user input in Excel using the VBA InputBox function. It displays a dialog with the prompt you want to display. The user types in a response and and clicks one of two buttons, OK or Cancel. Entering nothing and clicking OK is the same as clicking Cancel. All responses are string data. If you want more functionality, you can use the InputBox method. See the VBA help files for details on their use.

    Sincerely,
    Leith Ross

+ 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