Club PA 2.0 has arrived! If you'd like to access some extra PA content and help support the forums, check it out at patreon.com/ClubPA
The image size limit has been raised to 1mb! Anything larger than that should be linked to. This is a HARD limit, please do not abuse it.
Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Excel Macro/VBA help - creating a checklist that hides/unhides rows and buttons

El FantasticoEl Fantastico Toronto, ONRegistered User regular
edited August 7 in Help / Advice Forum
Not sure if this is the best forum for this kind of help that I'm looking for (G&T might be better?)

I've been tasked with a project to help our sales reps be more consistent when they send a quote/offer out to their clients. Right now, as we have a bunch of lifers who've been doing this for 10+ years, and a lot of turn over for new reps, they all have their own method when sending out a quote. Problem is, if the rep is out sick, and they get transferred to a colleague (or let go and their cases assigned to someone else) everyone's doing something different, not to mention the possibility of quotes/offers going out with wrong information, or non-professional verbiage and spelling errors.

I figured the easiest way to deal with it all is to create a checklist that has all of our products separated by groups (hardware, software, third-party hardware, value-adds, etc.) and as the rep talks to their client about what products they want, they just click on the group (Hardware for example) and then the kind of product(s) under that group, along with the number of units and the negotiated price for them (2 units of Device A at $25.00, 1 unit of Device C at $50.00).

Here's where I start running into problems.

I'm doing this in Excel. Making the checklist is easy, but I want the form to be as idiot-proof as possible. The top 7 rows are fixed, and never to be hidden. When a rep clicks on the checkbox for either New Client or Existing Client, it unhides the header rows (9, 17, 28, and 42, for example). These headers have a checkbox next to their title as well, so when the rep has determined that the client wants stuff from Hardware, they click the box on row 9 and it expands to unhide rows 10-16.

Each of those rows has checkboxes next to each product, so the rep can click on the box, which unhides the corresponding product name on a separate worksheet with the entered amount of units and total cost.

The separate worksheet is what would ultimately be what the rep exports to a pdf (easy) and sends to their client. It will always look the same, it would contain all of our approved images and disclaimers from Marketing, and it's clean and only has the details of the products the rep and client agreed on. Everything else remains hidden and not used. When the rep is ready for a new quote, they click the big red RESET button and start from scratch.

Where I need help is in writing the macros so that separate rows hide/unhide as the checkboxes are checked/unchecked.
The other major problem is Excel treats checkboxes as objects, so they don't hide when the rows containing them are hidden. One of the coders in the company gave me some assistance with hiding objects, but their code hides boxes one at a time, and this checklist will probably have upwards of about 200+ boxes by the end of it all. I can't have Excel call out to every individual box every time one of the header boxes is checked/unchecked.

Is there a way to hide all checkboxes all at once and unhide them as the rows are unhidden too?
Is there maybe even an easier way to do what I'm looking to do? Some kind of third-party software maybe, though I'm not sure if I could get the company to approve purchasing a new software for something like this.

akyxa17p3s5g.png
PSN: TheArcadeBear
Steam: TheArcadeBear

El Fantastico on

Posts

  • TofystedethTofystedeth veni, veneri, vamoosi Registered User regular
    This is the kind of thing that excel can technically do but will almost always be easier to build and maintain in a internal web app or something. If your company will let you take more of that (or some other) coder's time you could probably work together to make something better and cheaper and in less time.

    And that way you don't have to worry about them losing the base copy of the spreadsheet, or somehow disabling macros, or an office update breaking it,
    Or tracking 200 objects and cell references in excel's clumsy scripting environment.

    steam_sig.png
    SmrtnikElvenshae
  • mtsmts Registered User regular
    edited August 8
    seems like you could do that with a basic table clicking what categories are shown.

    This google sheet has something sort of similar to what you want or at least could be modified

    https://docs.google.com/spreadsheets/d/1vlWfhgM6K4iQF2RdnMNDBpDRY14UaK0f4AAq0FHdONk/edit?usp=sharing

    basically you select the thing you want and it shows you only those.

    its using the filter command

    mts on
    camo_sig.png
  • tastydonutstastydonuts Registered User regular
    edited August 8
    Having implemented a shared excel tracking thinger, and having the feeling of death inside when one of the people

    a) deletes the cell and kills a block of formulas in the process (bonus points if they choose "move cells up" and not row
    b) pastes something into the cells from another document and kills the formatting
    c) copied the entire document, saved it as a "plain sheet" and then had people start using that until people notice that "it's not working right"

    I can agree with Tofy that if you can, you should just get a web app or a php-form script or something... or even use MS Access if you have it.

    tastydonuts on
    “I used to draw, hard to admit that I used to draw...”
    Elvenshae
  • IrukaIruka Registered User, Moderator mod
    There are a decent amount of Open Source POS systems out there. We used one at the Deli that I used to work at, and it had sub-menus, products, and inventory. I feel like all you would need is a POS that can output an invoice instead of a pure register based thing, but maybe I'm mistaken.

  • El FantasticoEl Fantastico Toronto, ONRegistered User regular
    Seems like my project is getting scrapped. They don't want to have something new. They're taking an old document from 2017, updating it for our current processes and products, and telling the reps to use that instead.

    I hate the form they're going with though. It has unnecessary fields and boxes and it's wasted time for the rep to remove things that aren't part of the discussion they might have just had with the client. Or if they don't remove it, then it's just empty space which looks unprofessional.

    I may still try to find an alternate way of doing this with your suggestions, but I'm not going to devote a whole lot of time to it as a side project. Thanks for helping where you all could. :)

    akyxa17p3s5g.png
    PSN: TheArcadeBear
    Steam: TheArcadeBear

Sign In or Register to comment.