Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: create an input box

  1. #1
    Guest

    Default

    How can I create an input box that will enter a criteria for a macro that searches the spreadsheet?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    In your code add the following lines (or variant thereof):-

    Dim myCriteria As String

    myCriteria = InputBox("Please enter criteria")

    Then use myCriteria as a variable in the rest of your macro. Hope that helps.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •