Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() 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 -- MJB ------------------------------------------------------------------------ MJB's Profile: http://www.excelforum.com/member.php...o&userid=25922 View this thread: http://www.excelforum.com/showthread...hreadid=392940 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Number range function | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
How to dynamically reference a dynamic named range | Excel Worksheet Functions | |||
Dynamic Function Reference Question | Excel Discussion (Misc queries) | |||
named range refers to: in a chart | Excel Discussion (Misc queries) |