I am trying to copy/paste from one worksheet within a workbook to another worksheet within the same workbook. I am having a very frustrating problem with the following error while trying to assign my ranges:
Run-time error '438': Object doesn't support this property or method.
Dim c As Range
Dim ws1 As Worksheet
Dim ws2 As Range
Dim tgt As Range
Set ws1 = Sheets("Sheet 1")
Set c = ws1.Range("Named_Range").Cells(1, 1)
Set tgt = ws1.Range(c, c.Cells(10, 1)) 'Purpose is to create a range with the first 10 cells of Named_Range, but I need it to be dynamic
'To test that range is being assigned correctly
tgt.Select
At this point I get the error code referenced above. However, the code runs provided that I add
ws1.Select
above "Set c = ..."
Any idea what's going on? My understanding is that using 'Select' in this way is not recommended, and I don't want to be messing around with selecting particular Sheets anyway because I am trying to eventually toggle between them while copy/pasting.