+ Reply to Thread
Results 1 to 13 of 13

Did you ever get stuck in a project?

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Did you ever get stuck in a project?

    I am curious and need to ask you seasoned VBA veterans about losing yourselves in your code. I have been working on a project that has been growing in user requirements with each iteration. I now find myself losing myself in the code because (I think) I am still relatively new to all of this. Has this ever happened to any of you when you were first breaking out on the scene? For the most part, I comment my code so that I can go back on it and know instantly what is happening. However, when I work on the project lately I feel disconnected from it and have been losing my will to keep going on it, especially while finding and fixing errors. More often than not (recently), I'll just stare at my code and go into a complete daze. If this has happened to you, what did you do to get past it? Naturally, plan b is to keep on givener (thanks FUBAR) and I am but my will to proceed is not so adamant in this regard.

    I should note that here at work, I am completely by myself when it comes to coding know-how and (fortunately for me) I have this forum. However, since I don't have anyone to lean on regarding data analysis, coupled with the fact that I am new(ish), I find it can be easy to be overwhelmed by projects.

    Plan B!
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Did you ever get stuck in a project?

    Funny... I am in exactly the same position right now. I am working on one of those "projects"

    Although I don't post VBA solutions here, I tend to use it a lot at work for these "projects". I too am the only advanced Excel guy here.

    And same too for me, it just keeps growing. Just when you think, "wow, this looks real nice, I'm sure the requester will love this"... then he turns to you and says, "this is cool, but maybe we can add functionality to do this next thing...."!

    I try mostly to do the hard tasks with formulas (for example copying rows conditionally to other sheets, I will use helper columns, etc to get the info)..... and only try to use VBA for the database querying and formatting, etc... I try not to rely solely on VBA to do the work. When I get stuck on VBA I try to search for solutions rather than post questions and usually I find some clues and can adapt it.... I only post questions if I am really stuck and can't find similar topics anywhere or don't understand something...

    ... but in the end, I actually enjoy the Excel stuff I do much more than what I really supposed to be doing here...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Did you ever get stuck in a project?

    Maybe it's time to revisit the whole design from the top down.

    Incremental requirements can get increasingly hard to accommodate when they conflict with the design created from the initial requirements.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by NBVC View Post
    ... but in the end, I actually enjoy the Excel stuff I do much more than what I really supposed to be doing here...
    I thoroughly enjoy the Excel stuff too and would not entertain doing anything else. Mayhap I just need a good night's sleep! Oh wait, I have uni projects too. Oh well, I'll sleep when I'm dead I guess

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by shg View Post
    Maybe it's time to revisit the whole design from the top down.

    Incremental requirements can get increasingly hard to accommodate when they conflict with the design created from the initial requirements.
    I have taken that thought into serious account but I am dismayed by the scope of the project to start it all over.

  6. #6
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Did you ever get stuck in a project?

    I'll tell you one thing that is for certain, if I didn't have this forum to frequent you pros to help with problems, I would be like a lost puppy searching for but never finding my tail.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by shg View Post
    Maybe it's time to revisit the whole design from the top down.

    Incremental requirements can get increasingly hard to accommodate when they conflict with the design created from the initial requirements.
    That's true.. unfortunately, I hate starting over something I've already put alot of work into.... and a lot of times, the requests for changes or additions come in weeks or months apart.... and to start over then would kill me!

  8. #8
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Did you ever get stuck in a project?

    One way to try to combat this is to break your code down into smaller subs and functions. It does take longer to write and can be a challenge to organize, but maintenance should (in theory) be more manageable. I think this is one of the advantages of OOP; consider each component a "black box". If someone requests a change you should (again, in theory) only have to go and alter the "guts" in one component.

    Likewise if you need to consider an entire-project redesign, you can often reuse some or most of your components.

    It's also a good idea to state in the vernacular what the sub does. My code often looks like this:

    Public Sub Dave()
    'The purpose of this method is to blah, blah, blah.
    ...
    End Sub


    In the end, some days (when you have the option) it's good just to take a break from programming. Find some other task at work that needs to be done, and let your mind rest a while.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by shg
    Maybe it's time to revisit the whole design from the top down.

    Incremental requirements can get increasingly hard to accommodate when they conflict with the design created from the initial requirements.
    Quote Originally Posted by Mordred View Post
    I have taken that thought into serious account but I am dismayed by the scope of the project to start it all over.
    In my experience, the second iteration will take a fraction of the time and be much more robust.

    All those saddlebags in your code (the If paragraphs added to cater to new requirements) will disappear in favor of a more cohesive, flexible design.

  10. #10
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by NBVC View Post
    ... but in the end, I actually enjoy the Excel stuff I do much more than what I really supposed to be doing here...
    Quoted for Truth! *Sheepishly gets back to doing actual work*
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  11. #11
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Did you ever get stuck in a project?

    My boss is a stickler for project requirements and sign-offs. He wants to ensure that all requirements are defined before development. Then the requestor signs off on the requirements. Anything that comes up as a "requirement" after the development is either an issue/bug that needs to be fixed, or needs to be submitted as a new project. This process, hopefully, will ensure that the user cannot create "scope creap" after development has commenced. This will also ensure that any "new ideas" get noted and organized and you can plan out the next version of the product, rather than just growing organically and, perhaps, not achieveing the most effective/efficient result.

  12. #12
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Did you ever get stuck in a project?

    Fortunately (for me or the boss?) I have no boss otter than myself, who can be very 'bossy' and not easily to satisfy.
    Most of the time I consider every new requirement as an indication of the involvement/engagement to the project. If it's only me that has to invent improvements/additions/requirements, there's a risk my 'solutions' won't be accepted. It also indicates they are critically thinking about the job they have and the work they are performing: why do we do that, is it really necessary, can't that be done simpler/easier (by a oneliner for instance ). It's nice to see people glow if you implement their ideas into your system.



  13. #13
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Did you ever get stuck in a project?

    Quote Originally Posted by Edward V. Berard
    "Walking on water and developing software from a specification are easy -- if both are frozen."
    ..........................

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1