Input Box Help!!

wpjensen

Board Regular
Joined
Mar 14, 2010
Messages
56
I have a macro that does what I want but I want to make it easier to usethis is what I Have

[Set r = Range("A3:A1000")] is it possible to have a input box for the RANGE ????

[For i = 9250 To 9999] also is it possible to have a input box for what to search for ??

I have been looking for some clues on the internet but don't know enough
about VB macros to do this

Any help would be appreciated. Wayne
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I have a macro that does what I want but I want to make it easier to usethis is what I Have

[Set r = Range("A3:A1000")] is it possible to have a input box for the RANGE ????

[For i = 9250 To 9999] also is it possible to have a input box for what to search for ??

I have been looking for some clues on the internet but don't know enough
about VB macros to do this

Any help would be appreciated. Wayne
Take a look at the Input Box Method in VBA Help. Here's an example that addresses your first question:
Code:
Dim r as range
Set r = Application.InputBox("Select a range", type:=8)
 
Upvote 0
Joe Found that and just finished testing the Range just before you answer thanks

but having a little more fun trying to get the next input box
would it basically the same

Code:
Dim i As Integer
  Dim nMissing As Integer
  For i = 8800 To 8830
Wayne
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top