Hi,
i'm need combine several Ranges in one Range. So, code in VBA is working:
all ok.Code:sAddress = "A4:R9,A11:R436,A439:R452,A454:R1326" Set oRanges = Application.Range(sAddress)
And, when i'm trying running code like this, the VB6.0 IDE generate error. My code is:
If I write by one RangeCode:sAddress = "A4:R9,A11:R436,A439:R452,A454:R1326" Set oRanges = oExcel.Range(sAddress)all work.Code:sAddress = "A4:R9" 'or for example "A11:R436" Set oRanges = oExcel.Range(sAddress)
Is it possible use anyway non-continues Ranges?




Reply With Quote
