M
MOnika
Sub inpBox()
Dim fn As String
Dim wb As Workbook
Dim Target As Range
Dim sTargetValue As String
fn = Application.GetOpenFilename()
Set wb = Workbooks.Open(fn)
Set Target = Application.InputBox("Select A
cell...", , , , , , , 8)
sTargetValue = Target.Resize(1, 1).Value
End Sub
using the code above I can have an inputbox where i accept
the range from the user. Can I have more than one inputbox
in the same dialog box. My idea is to ask the user for 5
values from a workbook. SO instead of popping the inputbox
5 times I want it to appear in the same dialog box 5
times.
I hope i am clear
thanks a lot.
Dim fn As String
Dim wb As Workbook
Dim Target As Range
Dim sTargetValue As String
fn = Application.GetOpenFilename()
Set wb = Workbooks.Open(fn)
Set Target = Application.InputBox("Select A
cell...", , , , , , , 8)
sTargetValue = Target.Resize(1, 1).Value
End Sub
using the code above I can have an inputbox where i accept
the range from the user. Can I have more than one inputbox
in the same dialog box. My idea is to ask the user for 5
values from a workbook. SO instead of popping the inputbox
5 times I want it to appear in the same dialog box 5
times.
I hope i am clear
thanks a lot.