jmthompson
Well-known Member
- Joined
- Mar 31, 2008
- Messages
- 966
I am hoping this is just a syntax issue.
Within VB, I am trying to find the address for a match for my cell value to use later as part of an address for a hyperlink. Here is a snippet of my code
wbNew is dimmed as Workbook, myAddr is dimmed as Range
I keep getting a Type mismatch error on the red row
Within VB, I am trying to find the address for a match for my cell value to use later as part of an address for a hyperlink. Here is a snippet of my code
Rich (BB code):
For Each c In Range("G2:I" & lastRow)
If c <> "" Then
myAddr = WorksheetFunction.Address(2, WorksheetFunction.Match(c, Workbooks(wbNew).Sheets("MCC_Breakout").Range("C2:CA2"), 0))
wbNew is dimmed as Workbook, myAddr is dimmed as Range
I keep getting a Type mismatch error on the red row