You might not have used selection with proper object. You can check it out in object browser (View->Object Browser) if the object you’ve used has that property/method or not. For example, if you are trying to read a selected range in Excel, it’s in window object. So, you should use: “ActiveWindow.RangeSelection”. And, if you want to set it to a variable, make sure it has been declared correctly as data type, in this case Range. Example: Dim MyRange As Range Set MyRange = ActiveWindow.RangeSelection If you have used “With” block, make sure you end it with “End With”. Example: With Cells(1,1) .Value=1 End With