Posts by CharlesH

    Re: Sequential Numbering


    Hi,


    Probably the way to go is to add a worksheet for the "Quote Nr" and have it hidden.
    Then you can write a code in the "This Workbook" module to look at the Quote sheet and get the last Quote Nr. then add 1 to it. Then you can have the Nr. populated to "B7" of the sheet you want.
    All you wold have to do for the first number is populat it in the "Quote" work sheet.
    I'll try o put some code for you.
    Others on this forum may have a better suggestion.[hr]*[/hr] Auto Merged Post Until 24 Hrs Passes;[dl]*[/dl]Hi,


    This is what I have.
    I did not hide the Quote worksheet.
    Hope this helps

    Re: Combine Multiple Records


    Hi,


    The following code may help.
    Paste it to a module.
    I used sheet1 and column A as reference for the code you may have to correct. Also I didn't
    Add the Headers for the Accts


    Re: Autopopulate A Textbox Based On The Entry Of Another Textbox


    Hi,


    Made changes to code.
    What this code does when you tab off of the textbox for the cust. code it should go to the sheet that has the cust codes along with the customer name. You will need to change sheet name and listbox name where necessary.
    Paste the code to userform code module.
    I do not think you can do a Vlookup in this case.




    Re: Autopopulate A Textbox Based On The Entry Of Another Textbox


    Hi,


    Here's some code that may help.
    When the user tabs off the textbox "tbStore" in the example it searches for the store name and then populates a lable, but in you case it can be another textbox.




    Re: Clear Multipal List Boxes When Changed


    Hi,


    The following code should get you started.


    Code
    Case "Meal Deal 1"
            ListBox2.RowSource = "Sheet1!G2:G56"
            ListBox3.RowSource = ""
            ListBox4.RowSource = ""
            ListBox5.RowSource = ""
            ListBox6.RowSource = ""
            ListBox7.RowSource = ""

    Re: List Values Meeting Date Criteria


    milyenabox,


    I modified zimitry code to what I believe you wanted.






    Re: Loop If And Through List Of Trades


    milyenabox,


    If you use the dates in column "A" (balance sheet) and then compare that with the open and close date in your worksheet(X) this would create a long list of trades.

    Re: The Way Around Text Appears


    Hi,


    Select the cell or cell range you want to change, then Right Click, select Format Cells, select Alignment, then click the word "Text" in the otientation box.

    Re: Populate Listbox With Hidden Sheet Names


    Hi,


    See if this works for you.


    Re: Checking For Expired Dates In A Range


    stickyfeet,



    Try this. If a empty cell is encountered it will not product the userform.


    Re: Writing Data To Open Workbook


    nmutimer,


    If your using a userform this may help.


    Re: Endless Loop Within A Loop


    face2face,



    Not really sure, but I tried you code as is and I do not see where in your loop
    "Loop While Cells(22, c) > Cells(20, c)"
    Cells(20,c) is ever greater than Cells(22,c)
    I ran a debug and Cells(22,c) hade a value of "9"
    At some time it has to be greater other wise it loop's.

    Re: Endless Loop Within A Loop


    face2face,


    If the loop for "d" is satisifed then you could put a "Exit For" which will take you out of the loop.
    Also check "sumrng = 0" it appears that it is being set to "0" thus stopping your
    "Loop While Cells(22, c) > Cells(20, c)" Cells(22,c) appears to always greater than
    Cells(20,c).


    Code
    For d = 5 To 253 Step 1 'to find the period on the row 1
                If Cells(20, c) < Cells(2, d - 1) And Cells(20, c) > Cells(2, d) Then
                       Cells(21, c) = Cells(1, d) - 1
                       Exit For
                 End If
    Next d