Hi all!
I need help with Visual Basic Application 6.0 and Excel.
Problem is that I need group some columns in Excel by Macro in VBA.
Columns are not fixed which mean that every time when a program starts columns
get changed. So that columns I calculate and put them in string.
How can I group those columns in Excel document? I was trying something like
Range (String).group but that doesn't work.
I didnt undersand exactly what you need, but his tips might be of help:
range(cells(1,1), cells(5,3)).select
will select the range A1:C5
if you want to have an excel range into an array, the easiest way is to import it into an array of variants
Dim a
a= range(cells(1,1), cells(1,1).end(-4121).end(-4161))
using END will have the same efect as (Ctr + arrow) , you can use excel constants instead of that numbers, but they wont work if you are not using VBA in excel.
HTH