trying to dynamically create ranges using this:
ws.Range(Cells(1, 1), Cells(q + 1, z + 1)).Value2 = xaRR
this works in excel like a charm, but access vba keeps giving me issue. It doesnt like the cells part. The annoying thing is this doesnt give me any fuss
ws.Cells(1,1).Value = blah blah blah
When I try this:
Dim oXL As Object: Dim wb As Object: Dim ws As Object: Dim rNg As Object: Dim cl As Object
Set wb = .Workbooks.Add
Set ws = wb.Sheets
Set rNg = ws.Range
Set cl = rNg.Cells
ws.rNg(cl(1, 1), cl(q + 1, z + 1)).Value2 = xaRR
it says that rNg doesnt support this property or method.
Can someone help me see the obvious issue?