![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
How can I create an input box that will enter a criteria for a macro that searches the spreadsheet?
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|