Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50076

Retrieving data from an excel spread sheet that has been filtered

$
0
0
hi

i am trying to write a macro that filters data with thousands of rows and columns of information and extract certain values from specified columns and rows

for example ive got currency, type of account, account#, opening balance, ending balance, maintenance etc

ive already completed the macro bit for filtering the data, and ive successfully got it down to 2 rows of data that i need to extract from,
but now to get the values of ending balance, maintenance in row 330 and 1240 of corresponding columns is the bit im stuck on

my original idea was to use activecelloffset but that only brings me down to a row that is hidden(by the filter),

is there a way to write the macro such that it will mimick the pressing of the downkey to go straight to the row that has been filtered,
in other words, i need to identify the row number that the data is on, in this example 330 and 1240, so i am able to identify the value in the corresponding column, for example (r=330,5) and (r=1240,6) so that it will allow me to carry out the following code

Code:

dim opening_bal as double

opening bal = wb2.Worksheets("FINSUMMARY").Range("r,5").value

Row/Column
1 Currency Type of Account Account#Opening Ending Maintenance
330 NZD Client Subtotal 51463 21515 29948
1240 NZD Broker Subtotal 8546132 65454 8480678


hopefully ive explained it clearly enough ><

thanks

Viewing all articles
Browse latest Browse all 50076

Trending Articles