Consulting

Results 1 to 13 of 13

Thread: Maintain index table to show allocated numbers

  1. #1
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location

    Maintain index table to show allocated numbers

    I have a workbook with a series of tables, each of which contains an allocated index number for each GPS mark therein. I can foresee that over time as new marks are entered in the workbook, I will need a method to maintain the next available number to use from a set range. Rather than visually scan up and down the column A data, I've created an index table to try and simplify to task, and this table contains not just numbers but coloured interiors to signify which GPS marks have an allocated Index number and are either allocated to a Lowrance plotter, or Simrad plotter or not uploaded onto either plotter. I am hoping to count cells by interior colour. From another thread I've been advised to manually force a recount, which I think I shall do by way of a button. Am i on the right track here?
    Attached Files Attached Files
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    What I am now looking for is a method to match the interior colour of the cells in tblIndex (K4:AD66) to those index cells in Column A., by using a worksheet change event. Can someone assist me please?. Will be unavailable for a couple of days as I go in for surgery on both eyes today, so no need to rush any replies.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Colour change doesn't trigger an event Ted.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Ted, you really should combine these two threads. I know that there are two questions, but the subjects are very closely intertwined.

    I have tried many ways to force the CountbyColor functions to automatically operate reliably and smoothly. I think that you really are going to have to use a command button or set aside a few cells to trigger the action when selected. At that time I think that I would do all the counting in VBA and just assign the results directly to the "answer" cells.

    There are two macros available from the Tools menu. One synchronizes the Cells in Column A to the Cells in tblIndex. The other uses the cells in Column A as the master and changes the color in tblIndex.

    I added a function that offers to put the next available unused index number in any empty index cell in column A whenever you select that cell in "A." See the Sheet VBA Express notes.

    If you change the color of an index cell in column A, you can double click on it and it will change the corresponding cell in tblIndex to change colors to match.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,645
    See the attachment
    Attached Files Attached Files

  6. #6
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    @ snb,

    I like your function, simpler and suggests a way to speed up the one we've been using.

    The bad news; I, at least, still have the same problem triggering it. Even using a cell formula and changing its inputs doesn't always trigger F_CBC. The only method I have found that always works is to delete a cell.




    I found your white Easter egg
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  7. #7
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    I am now using a helper column to count the Lowrance, Simrad and non Allocated. I am still however looking at matching the colours of the index numbers in column A to those in the tblIndex. I am also limited to the amount of time I can spend looking at monitors, so if you already provided the solution please bear with me.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  8. #8
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Goood to seee you back.

    How are your peeepers feeeling and doing?
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  9. #9
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    Not to bad I guess, I can feel the stitches rubbing on the back of the eyelids and am very hesitant about sunlight. It is after all only the second day.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  10. #10
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Ouch. Don't scratch. Wear sunglasses.

    Quit staring at a monitor.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  11. #11
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    ROFL....................
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  12. #12
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    I am so over this.......... I've even turned the screen intensity well down, but still find I'm trying to see through a watery blurry vision.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  13. #13
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Take your time.

    I'm leaving wednesday and

    won't be back before December.
    Last edited by Aussiebear; 11-10-2014 at 05:33 PM. Reason: Grrr......
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •