XlRange := XlWorkSheet.Range('B3').End(-4121); // -4121 = xlDown
with the cursor right before the E of End. I'm guessing that it's interpreting "End" as a keyword, and complaining that there's something missing after the dot.A field from a record variable was expected. For example
Record.Field
Customer.Name
Comments
I haven't tried this but in the examples in excel help
Range("B4").End(xlToRight).Select
The Select is included
Have you tried?
XlRange := XlWorkSheet.Range('B3').End(-4121).Select;