I have a worksheet named: RB04244200-A5,B5 that contains many columns of data.
I would like to retrieve a subset of data from the worksheet from a web page using OLEDB. I can do it easily by creating a named range and from the web page retrieve the desired data.
my problem is how to do this dynamically! Searching the web I found the following. =OFFSET(mySheet!$A$1,0,0,COUNTA(mySheet!$A:$A),1) so I've modified to meet my needs.
I need to pull data starting from row 34 in column B until column B is blank. So this is what I've got:
=OFFSET(RB04244200-A5,B5!B$34,0,0,COUNTA(Model),60)
where Model is column B header value and 60 is the number of column to pull (ie is there a way to dynamically figure out how many columns wide a worksheet is?)
How do I get the results of this function? Each time I open the worksheet and allow macros the function is there but no value. Is the formula not correct?
thanks for any assistance with these 2 questions. (getting number of columns,how do I get the results of the formula if it is indeed correct?).
thx,
- MJB
Bookmarks