Hi, I am trying to select a cell from another workbook. I have the following code, a new workbook opens but is greyed out and I cannot select the cell. Once I close the inputbox, then i see the target workbook open up. Please suggest
If condition is true Then
Workbooks.Open fileName:=openFilePath & openFileName
Sheets(openSheetName).Activate
Set openCellAddress = Application.InputBox("Select the cell that has the value", "Select cell", Type:=8)
MsgBox openCellAddress.Address
End If
I am attaching the screenshot of the excel file that opens up with the input box.
Image is https://www.dropbox.com/s/hwq98jzqt7kw4ao/Capture.PNG?dl=0
If condition is true Then
Workbooks.Open fileName:=openFilePath & openFileName
Sheets(openSheetName).Activate
Set openCellAddress = Application.InputBox("Select the cell that has the value", "Select cell", Type:=8)
MsgBox openCellAddress.Address
End If
I am attaching the screenshot of the excel file that opens up with the input box.
Image is https://www.dropbox.com/s/hwq98jzqt7kw4ao/Capture.PNG?dl=0
Last edited: