When I use the following, I place the formula into the Spreadsheet and get the resulting row number.
Range(emailColumn & FirstRow & ":" & emailColumn & LastRow).Formula = "=MATCH(B2,'RosterFileName'!FullName,1)+3"
When I try this function in VBA I get different errors; syntax, compile error, etc. depending on where I place quotes.
For count2 = FirstRow To LastRow
MatchRow = Worksheet.Function.Match("B" & count2, 'RosterFileName'!FullName,1)+3
Any help on when and where to use an apostrophe (') and/or a quote (") would be appreciated.
Regards,
Tom
Range(emailColumn & FirstRow & ":" & emailColumn & LastRow).Formula = "=MATCH(B2,'RosterFileName'!FullName,1)+3"
When I try this function in VBA I get different errors; syntax, compile error, etc. depending on where I place quotes.
For count2 = FirstRow To LastRow
MatchRow = Worksheet.Function.Match("B" & count2, 'RosterFileName'!FullName,1)+3
Any help on when and where to use an apostrophe (') and/or a quote (") would be appreciated.
Regards,
Tom