Posts by KadeFoster

Important Notice

Please note that on 14th December 2023 users will experience an expected outage whilst we make upgrades to our network. We anticipate this process may take a couple of hours and so we apologise in advance for any inconvenience.

    Ok have attached my project. This is my first project in VBA, so i have been learning as i go along.

    The above code is located on the CheckScaleForm

    It is used to search DataBaseTasks sheet to create a list of Tasks related to the specific mine on separate sheets. I want the code to only show tasks that aren't Cancelled or Completed in these list boxes.

    Those sheets then are used for the 3 of my list boxes to display the tasks for that mine.

    You can then double click an a task and write a record for it and save it. Depending on your choices it may generate an email.

    There is an error popping up to but i will ask for help about that after this is sorted. One problem at a time. I have managed to get this far on my own. My code may not be pretty but it mostly works.

    Hey all,

    I am wanting to exclude certain results from my search if one of the cells value is Completed and Cancelled.

    I have managed to find some code that loops through my list looking for rows with a certain value, i just don't know how to make it exclude the rows with the above values.

    Status1 & Status2 are the values i am trying to ignore. They are located in column 15 on the "DataBaseTasks" sheet.

    Below is my code:

    Hey all,

    Been a while since I have been here. Have had no projects at work to do. But at the moment I am working on a VBA Userform project and basically have to teach myself how to do it, or learn how to use other peoples code and modify it to my needs. My first ever VBA project really, kinda jumping straight into the deep end. My code may be messy but I am learning as i go. Optimisation will come later, i just need to get this working.

    Any ways i am kinda stumped. On my Userform (CheckScaleForm) I have 3 list boxes that show my data. On double click selection, that data repopulates my other fields, then i fill in a textbox to create an update for that task on another Sheet (DataBaseCheckScales) with all my update entries. I want my Status Combo selection to update the Status Cell from the double click selection on (DataBaseTasks) but the rest of the update to go to the updates sheet (DataBaseCheckScales) (this code is working).

    I have managed to get myself most of the way through the project but this idea has me beat. Any help would be awesome.

    Re: Combinations

    Sorry my descriptions sucks. OK i have included what i generated before. The macro does not crash your system it just takes a bit of time to generate that amount or combination outcomes. If you look in my list i have 0 which i would prefer to be blank. The current macro generates combinations with those zeros. I just need it to ignore those zeros/blanks and only generate with the input i provided. Hope this helps

    b) 90 d) Significant 0 c) Intermediate
    c )80 d) Significant c) Moderate c) Intermediate
    d) 70 d) Significant c) Moderate c) Intermediate
    e) 60 0 c) Moderate 0
    f) 50 d) Significant c) Moderate c) Intermediate
    g) 40 d) Significant 0 c) Intermediate
    h) 30 d) Significant c) Moderate c) Intermediate

    Re: Combinations

    The macro does what its supposed to do. It just does not ignore blank cells. I ma trying to generate all possible combinations of the items in the list in the order that they are in. One list is 10 cells long the others are 4. What the macro does is just starts outputting the combinations from that first blank cell. I just fill them will 0s so that each list is 10 long. this gets around that problem but also generate a couple of 1000 more combinations which i have to sort and delete the rows as i don't need that data.

    The combinations have to keep the order that they are already in. Just need the macro to ignore the blank cells and start out putting the combinations the row below all the input data.

    Re: Combinations

    Did not seem to work for me.... did not generate what i was after. The loop that i have does what i want just does not ignore the blank cells, and will just the combinations into the first available blank cell which basically fills in around where i want input to be. If you get what i mean

    Hey All,

    I am not an excel guru or coder hence why i am asking this question. I am trying to generate all possible combinations from a certain number of items keeping them in order as such. I have found some code and it nearly does what i want it to but not quite.

    It was originally 3 columns but i added in a couple more.

    As you can see from my file i am trying to combine that data. When i run the macro it just starts to fill the combinations down from where ever is the first blank cell. I need it to ignore the blank cells and just generate combinations from whats there. Also to start to fill them down from row 12 or so and not in the data i am trying to use. Any help would be appreciated.