It exists , but it is not quite the same as the one you find in Excel. Grab the application object and call the InputBox method . These methods can display several modal input dialogs of various types. Type 8 is a range selection type, a type 8 dialog has a large text field, an OK button, and a cancel button (but there is no icon for a normal range selection). When the user clicks “OK”, the selected range is checked and the input field method returns the result. As in the "real range dialog", the user can select only the selected ranges while this modal dialog is open.
FROM#
Application.InputBox("Select a Range","title",Type.Missing,Type.Missing,
Type.Missing,Type.Missing,Type.Missing, 8);
Then use the return range to display in the TextBox.
source
share