sorry if my question is an easy one. I am still getting the hang of vba.
Is there anyway to have a macro select a workbook defined by the user, then use that range for calculations? An example of what I am trying to do is in the code below:
Sub Other_Workbook_Range()
Dim wb As String
wb = Application.GetOpenFilename
If Range("A1").Value = Workbooks(wb).Worksheets("Sheet 1").Range("H74").Value Then
MsgBox "Okay"
Else
MsgBox "Fix"
End If
End Sub
I don't think this code will work, but it is the best example I have of what I am trying to do. Let me know if I can clarify further. Thank you for your help in advance!