Posts by audimtm

    Hi,


    I have two issues that i am trying to resolve. I have a code that basically formats and combine multiple selected excel files. Problem 1. the macro doesn't always work (maybe i need to restart comp or restart excel? refresh issue?) 2. I need help with naming the worksheet based on a cell value/text.


    currently i have a code to pull/extract numbers within parenthasis. however sometimes the sheet may not have numbers. so i need it to say if there's (12345) name sheet 12345, if there's no (12345 or similar), name sheet (basketball) baskeball. the cell range will always start with account:


    Hi,


    i'm having some trouble coming up with a clean way to pull data from another workbook(s). For example, wb 1 contains 3 set of data; column a = alphabets a through z, column b contains month end dates and column c contains a value.


    How do i in wb 2 (new worksheet) only pull in data for letters, a, t, s, b and e based on a date i specify?


    right now i'm using a very messy "sumproduct formula." for example, i'm using sumproduct((daterange=wb1daterange)*(letter=wb1letter)*(wb1.value)


    my end result would be to pullin the value from wb 1 using two or three critierias in wb 2.

    I"m currently trying to perform a vooklookup/index match/sumproduct (either one) based on the input date the user chooses. Currently i have the code written as (see below). is there a better way to say, based on user input date, match date + unique code and bring the return overs (paste value)


    Re: Left / Right / Mid


    hi jindon, thanks for the quick reply. i don't need it as a msgbox but as a value so i can rename the sheet with that value. thanks!!!!

    Re: Left / Right / Mid


    hi, what if i had another example where range("a1")= 11111 (abd) (abcdef-cad) and i only wanted to extract abcdef. what would the vb code look like? thank sin advance

    Hi,


    The below code allows me to combine multiple sheets from different workbooks into one. However the macro is limited to 10 workbooks, i.e. if i select more than 10 workbooks, the code stops copying/moving sheets over and will stop at 10. Would you guys happen to know why? i need the code to copy as many workbooks i have opened.


    Hi,


    Trying to rename each worksheet to a cell content. However within the cell, there are paranthesis that i need to get rid of. For example: range("a1")= 11111 (abcdef):


    i need a code or excel function to only extract abcdef. From the example, i can use right(a1,7) which will give me abcdef), how would i get rid of the last )?


    thanks in advance

    Hi,


    Was wondering if there's a way to ungroup 1 of 2 sub groups? For example the below code ungroups all data if there are multiple subgroups with a group. Is there a code to only ungroup 1 or the first subgroup only?


    What i need:


    Group 1:


    Sub Group A (i only need to show Sub Group A)
    Sub Group B


    Code
    ActiveSheet.Outline.ShowLevels RowLevels:=1

    Re: Confused on Countif in VBA - Share insight and some Help? :P


    thanks for the reply. i just need something simplier. my code below sort of does the job. however, i need only to apply the countif formula if column E cell value = "T", if it does not equal "T," then skip or end sub.


    Re: Confused on Countif in VBA - Share insight and some Help? :P


    Hi,


    if you look at my file, i have worksheets before and after. in the after worksheet, i need help with summing up the individual transactions lines. if you look at the before worksheet, i have 4 total rows/lines relating to "O123", 3 for "O456" and 4 for 'O789." in the after worksheet, i need column F re-updated with the correct number of transactions.


    i am using this code to sum up duplicates, but i cannot add up the aggregate.


    Hi,


    I am trying to write a macro that automatically counts the number or rows based on a value/critieria. I labeled the excel sheets before and after. Basically i need count/sum up the number of rows within the dynamic range (in this case the range starts from (B4:B13). In excel, i can use countif($b$4:$b1$3,b1) to return the updated number of rows. But how do i update the first 3 cells in column f, g, h, I, j, k and L?


    just fyi,


    in column A, ABC = the total count/sum of the rows and values
    in column A, YOU = the individual count/sum (which totals up to ABC)