Posts by jaslake

    Re: vlookup, index or match for aligning data in worksheets?


    Hi Pacer


    Try this...

    Re: Macro - Resize table length by variable


    Hi jhallcb


    This Code in the attached uses the "Always Insert" construct such that you don't need a variable to Resize. The Code is based on your Sample Data...see if you can adapt to your needs. Need help, let me know.

    Re: Match two columns amount with different account numbers


    Hi Jintony


    Let's try one more time...

    Re: Match two columns amount with different account numbers


    Hi Jintony


    This Code is in the attached. The Code will not Match the two 2700.00 records at Rows 74 and 75 due to the Order of Processing of the Records and this Rule.

    Quote

    E and F are equal (Match), but do NOT the same account number (Column A)


    Re: Copy range, paste in outlook mail and send e-mail


    Hi SAS83


    This Code will delete all Controls (Form Controls, ActiveX Controls, Pictures, etc.) on the Worksheet.


    The first Line of Code says that if there is an error because no Controls exist then skip the next two lines of Code.
    The second line of Code says that if Controls do exist and they're hidden, make them visible.
    The third line of Code says delete all of them.
    The fourth line of Code is the bail out line for the first line of Code.

    Code
    On Error Resume Next
              .DrawingObjects.Visible = True
              .DrawingObjects.Delete 
            On Error Goto

    Re: Data Query based on Button Clicks VBA help required


    Hi kumarma


    Add this Code to your button on Sheet1


    Add this Code to your button on Sheet2


    To protect the project:
    Alt + F11
    Select Tools
    Select VBAProject Properties
    Select Protection

    Re: Data Query based on Button Clicks VBA help required


    Hi kumarma


    I have no idea what you're asking for. What's this refer to...

    Quote

    Box 9, Box 8, Box 7 and so on till Box 1


    You might look at the Sub Total Function...


    Here's a link http://www.techonthenet.com/excel/formulas/subtotal.php


    Function number is the number 1 to 11 (includes hidden values) or 101 to 111 (ignores hidden values) that specifies which function to use in calculating subtotals within a list.


    1 or 101 AVERAGE
    2 or 102 COUNT
    3 or 103 COUNTA
    4 or 104 MAX
    5 or 105 MIN
    6 or 106 PRODUCT
    7 or 107 STDEV
    8 or 108 STDEVP
    9 or 109 SUM
    10 or 110 VAR
    11 or 111 VARP


    If you will post your File with a clear description of this new requirement I'll be glad to look at it. Any additional requirements should be in a new Thread.

    Re: Data Query based on Button Clicks VBA help required


    Hi kumarma


    This is done..

    Quote

    Also please help in 9-Box distribution ws code as well.


    So, in reality, you want Columns B to Column AB (***Excluding Column P, W, X as it contains formulas) populated with data from Employee Database. There will be information in Columns O to AB (if it exists), or not (if it does not exist).


    Try the Code in the attached...let me know of issues

    Re: Copy/paste columns into another sheet if headers match


    Hi opbeland


    Try this Code in a general Module

    Re: Data Query based on Button Clicks VBA help required


    Hi kumarma


    When Decision Support Tool is populated with the Run Command from Employee Data Base you indicate to populate only Columns B to N.

    Quote

    In Decision support tool WS, I want the code to pull the information from the Employee Database WS based on the Tower and Team Drop Downs (F23 & F24) selected and update it from Column B to Column N


    What if Data exists in Columns O through AB of Employee Database? Should it NOT be brought over to Decision Support Tool? If it's NOT brought over and the Manager does NOT populate a previously populated Field, the previous Data will be lost...or...am I missing something?

    Quote

    Managers will update the information from Column O to Column AB (****Excluding the Column P, W, X --> as these columns contain formulas and they should not chage). Once they have updated the information and click on Update Date button i want the code to paste the values of that particular resource (Tower/Team selected in drop down) Paste Special --> Values From Column O to Column AB in Decision suppor tool WS to Employee Database


    Only you know how you intend to use this.


    Edit: Currently the Update Button replaces the ENTIRE Row in Employee Database with the Row of Data from Decision Support Tool.

    Code
    Set c = rng.Find(cel.Value, , xlValues, xlWhole, xlByRows, xlNext, False)
          ws1.Range(ws1.Cells(cel.Row, "B"), ws1.Cells(cel.Row, LC1)).Copy
          ws.Cells(c.Row, "B").PasteSpecial (xlPasteValues)

    Re: Data Query based on Button Clicks VBA help required


    Hi kumarma


    This Code in the attached appears to do as you require. I've assumed NO to this

    Quote

    Will you ever have more than 9 Groups?


    The Edit Mode Button has not been programed as I don't know it's intended purpose.