james.rees02
New Member
- Joined
- Mar 26, 2009
- Messages
- 5
Hi - am developing a macro for users to use and need help refining one part of it.
Essentially, the user selects a cell, then clicks a button to run a macro. This is the "From" cell. The macro then needs a "To" cell address to be able to complete. I have got it working using the following code:
Dim RngTo As Range
Set RngTo = Application.InputBox("select cell", Type:=8)
but it opens up an input box with OK/Cancel buttons......where the user selects the cell then clicks OK.
Ideally, what I'd like to see is the macro continuing as soon as the user clicks the cell.....removing the need to click OK....(small step I know but I'm like that
)
What is the code that would enable this. Any help is appreciated.
Thanks.
Essentially, the user selects a cell, then clicks a button to run a macro. This is the "From" cell. The macro then needs a "To" cell address to be able to complete. I have got it working using the following code:
Dim RngTo As Range
Set RngTo = Application.InputBox("select cell", Type:=8)
but it opens up an input box with OK/Cancel buttons......where the user selects the cell then clicks OK.
Ideally, what I'd like to see is the macro continuing as soon as the user clicks the cell.....removing the need to click OK....(small step I know but I'm like that

What is the code that would enable this. Any help is appreciated.
Thanks.