+ Reply to Thread
Results 1 to 92 of 92

lazy gits

  1. #1
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    lazy gits

    rant on...
    i have noticed that more and more requests for vba solutions are cropping up, not just here but at other sites like mr excel
    can i have code to fill this formula down.. no just drag it
    what is vba to add cells a1and b1 together,,err why
    it's just lazy
    now if you are one of these people
    LEARN how to use functions ,pivot tables,consolidation blah blah
    when you cannot find a function to do it then ask.
    now what is the code to open and pour my beer?
    rant off
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    But then you've got a sheet full of formulae!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    and the problem with that is? it's a spread sheet not a pretty presentation tool, every thing can be hidden if you really want.
    nope i think it's the same old "i know excel guvnor" but no you dont .then have to cover your backside by getting someone else to do it.

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

    Re: lazy gits

    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

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

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: lazy gits

    Please Login or Register  to view this content.
    never think about it! )))
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: lazy gits

    lol good point MW my son just took an exame in the UK on excel, word and PP and got 85%...he said so now i know all about excel. i asked him if he had used index/mathc yet...his reply was...ummmmm wassat? LOL

    Edit:

    TigerAvitar...can you explain to me where i put that code plz? i tried to add it to the cooler drawer in the fridge but nuffink happened
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: lazy gits

    FDibbins, it's about ECDL?! my son took it too! I rcvd the same answer... LOL

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: lazy gits

    john55, not too sure, im in the US, but it was a 2 part exam, the 2nd part was a choice of a, b, or c...they didnt tell him a was word, b was excel and c was PP. he chose b and thought it applied to all 3. got 30% lol and has to redo the 2nd part

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    The problem with a sheet loaded with formulas - for me - was that I then had to leave them with the client and the client's specialists - formulas, if unprotected, regularly got creamed - oh by the way, the beer is on the third shelf - that's probably the cause of the type mismatch error!

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    ah see there's the problem, the client should have been able to do them themselves and not get an outsider to do them.. its like oh i better leave an iron lung just in case you forget how to breath

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Yes, it boggled the mind - even if protected, some "specialists" would go through the procedure anyway and obliterate my formulas !!!!

  12. #12
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: lazy gits

    Martin is right and I unfortunately fall under the category of people who jump to vba just because I can when I know there may be a possible way using formulas.

    xladept, if your 'specialists' are messing with the data, I have found that moving the formulas to vba and using a change_selection sub allows me to protect the formulas without increasing the file size.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  13. #13
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: lazy gits

    There is of course the outside chance (and yes I do accept that it is an outside chance) that they are asking for the fill down VBA as a part of a much larger VBA project. In this circumstance then I wouldn't treat it as a lazy question.

    Now obviously in this case there might be a better way of doing it in VBA rather than autofilling a formula that can be suggested, but the bottom line is unless they have explicitly stated it then we shouldn't really assume what they are going to be using the code for.

    Just out of interest I was one of the rare posters who when I was a total novice to VBA did ask the question how to fill down a formula to the last used row as part of a larger project for others to use.

    I do admit that most of the time I don't believe that they are using it as part of a bigger project but then I also know from my own experience that there are a lot of people out there who automatically think a VBA version is always superior and won't hear otherwise.

    Which I do find amusing sometimes as 95% of the same people have never written or understood a code in their lives.

    Anyway that is my annual standing up and making excuses for lazy posters over with, I will now revert back to my default setting of moaning and groaning about the world for the rest of the year.

    Normal service restored
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    As you can imagine, I avoided spreadsheet formulas on my gigs.

    I know there's another Windmill out there - Hey Sancho!

    I did finally use a change selection event to protect formulas - but I ended up avoiding formulas wherever possible.
    Last edited by xladept; 06-29-2012 at 11:50 PM.

  15. #15
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: lazy gits

    i personally not able to do vba... preferred formula make's me know and then study what's happening "inside a computation" in a spreadsheet.
    then i am able to practice math.

    vba automates everything, user's don't tend to learn how did a value came out from a certain computations.

    where as formula will always keep anyone in touch.

    e.g.
    vba - cell b1 value = 10

    10????? where did this value came from........

    is it A1+B1
    is it A1/b1
    is it A1*B1
    is it A1-B1
    is it A1^2.. ooopppss
    ....
    ....

    *************
    formuals'

    C1=A1/B1 ----- ahhhh, i seeee!!!!!! -(user)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  16. #16
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: lazy gits

    This seems to come up regularly. One previous rant with a good follow-up discussion is here:

    http://www.excelforum.com/the-water-...o-do-this.html
    Like a post? Click the star below it!

  17. #17
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: lazy gits

    reminiscing???

  18. #18
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Many times VBA is asked for because teh OP either has a badly designed workbook or just doesn't know or explore Excel's inbuilt tools like PivotTables, Tables or Lists, etc
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  19. #19
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: lazy gits

    Quote Originally Posted by xladept View Post
    As you can imagine, I avoided spreadsheet formulas on my gigs.
    That is a really strange (mis)use of Excel.
    Remember what the dormouse said
    Feed your head

  20. #20
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    Go get 'em Martin

    Have a look here
    if cell includes string append a character to the value of another celll

    Compare the questions with the VBa result,and the result the hard way!
    The VBa has had 3 views so far, the hard way none, tells you something, no?

  21. #21
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: lazy gits

    I have to admit I know nothing about formulas. But when a question is asked in the programming forum, I will do my best to answer that request.

    @ Marcol, sorry if I did something that is not required, as I am still learning myself.

    @ TigerAvatar, I am getting and error here after I tried to amend your code,

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  22. #22
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    @Dave, I wasn't intentionally pointing a finger at you, just trying to highlight Matrins' point.
    My apologies if I have offended you ...

  23. #23
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    its not that code isn't useful and it can automate loads of boring tasks and do other quite wonderful things. it is just that obviously some people have never tried and just post "i need vba" when with a bit of thought they probably dont. my favourite is "my boss says" i cant have hidden sheets or such??? i bet that conversation never occurred.
    conversely tho' you do get "I'm not allowed to use vba/code" which i read as" i don't understand it or know where to put it if i did"
    Last edited by martindwilson; 06-30-2012 at 08:45 AM.

  24. #24
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    Agreed Martin, but I still encounter in real life, companies that don't allow macros, the warning message scares the sh*t out of them ...

    So what does the "minion" do in these cases?
    1/. Does he/she try to use the native resources in Excel?
    2/. Take the file home and fix it there?
    3/. Post a question in a forum, without the workbook of course, then p*ss of to the pub to await a solution, bumping from his/her blackberry as panic sets in?

    What do you think?

  25. #25
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: lazy gits

    Marcol, this worked for me

    Seriously I think most people who come to forums are roughly split into several categories, the smallest fraction being people who are here to 'learn'. Many want key-turn solutions to problems that are available in a simple Google search. Either they are too lazy to do the search and just drop the question around in a couple of forums and go watch TV until a solution magically arrives to their email AND/OR just want a solution to a problem without learning the ins and outs of the application. To be fair sometimes time is a big factor and they just don't have time to surf the learning curve, with trial and error, until perfection rears its ugly head.

    Disclaimer: From time or another, I have fallen into each category, but I try to only post a new thread when I truly can't find an answer.

  26. #26
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: lazy gits

    my favourite is "my boss says" i cant have hidden sheets or such??? i bet that conversation never occurred.
    I haven't had that exact conversation but I have had one with a fellow manager who insisted that he must have a VBA solution to a spreadsheet he uses "as a macro is always better" despite me explaining that it was easier just to have fixed formulas in the sheet as that was all that was needed for the task.

    Eventually I caved in and wrote him the macro.

    So now he has his macro that fills approx 12000 rows by 8 columns of formulas,drags in a bit of data from the main system, does a few needless loops, border fills,formatting e.t.c and screenupdating is switched on.
    It takes about 8 minutes to run and amuses my mate in IT greatly every time he sees him using it (he runs it at least twice every day).

    Maybe he just likes the flickering Christmas light effect it has when it runs

  27. #27
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Quote Originally Posted by abousetta View Post
    Marcol, this worked for me

    Seriously I think most people who come to forums are roughly split into several categories, the smallest fraction being people who are here to 'learn'. Many want key-turn solutions to problems that are available in a simple Google search. Either they are too lazy to do the search and just drop the question around in a couple of forums and go watch TV until a solution magically arrives to their email AND/OR just want a solution to a problem without learning the ins and outs of the application. To be fair sometimes time is a big factor and they just don't have time to surf the learning curve, with trial and error, until perfection rears its ugly head.

    Disclaimer: From time or another, I have fallen into each category, but I try to only post a new thread when I truly can't find an answer.
    You are forgetting the cheeky ones who set themselves up as consultants then post to the forums to get the jobs completed

  28. #28
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: lazy gits

    There's a saying in Dutch ( there must be an English equivalent) that translates to :" Why do things the easy way when they can be done the hard way" ?

  29. #29
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: lazy gits

    Quote Originally Posted by royUK View Post
    You are forgetting the cheeky ones who set themselves up as consultants then post to the forums to get the jobs completed
    Gee, Roy, I never imagined anyone would do something like that! Are you serious ? I never, never had that feeling on forums ( and particularly this one)

  30. #30
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Quote Originally Posted by Pepe Le Mokko View Post
    Gee, Roy, I never imagined anyone would do something like that! Are you serious ? I never, never had that feeling on forums ( and particularly this one)
    And most of them originate from a major sub-continent!

  31. #31
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: lazy gits

    Quote Originally Posted by royUK View Post
    And most of them originate from a major sub-continent!
    You don't say !

  32. #32
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: lazy gits

    Quote Originally Posted by abousetta View Post
    Marcol, this worked for me

    Seriously I think most people who come to forums are roughly split into several categories, the smallest fraction being people who are here to 'learn'. Many want key-turn solutions to problems that are available in a simple Google search. Either they are too lazy to do the search and just drop the question around in a couple of forums and go watch TV until a solution magically arrives to their email AND/OR just want a solution to a problem without learning the ins and outs of the application. To be fair sometimes time is a big factor and they just don't have time to surf the learning curve, with trial and error, until perfection rears its ugly head.

    Disclaimer: From time or another, I have fallen into each category, but I try to only post a new thread when I truly can't find an answer.
    This, I am here to learn and to give back what I have been taught. I could not even do a VLOOUP before a I came here and I was just looking at my first posts here and to be honest I am embarresed to to say the least, such simple questions. But, the experts here were always here to help. So if you want to see a success story (will I think I have come a long way) look no further.

    @Marcol, no offence taken. I just don't know the true potential of excel yet and I myself am guilty of trying to re-invent the wheel when there already is one.

  33. #33
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: lazy gits

    Quote Originally Posted by JapanDave View Post
    ...But, the experts here were always here to help.
    The imperfect tense is correct, now most of them have left...

  34. #34
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    And most of them originate from a major sub-continent!
    I'm sure we have all noticed that, and could name them with some certainty.

    At first this needled me, I could picture some chappie scurring through the souks and bazzars clutching his prize, and proudly presenting it to his cheapskate client or paymaster.

    But then I took a pace back.

    If it helps to get him and his family out of these desperate slums that the rich allow them to exist in, then good luck to him, he maybe deserves all the help he can get.

    Or am I being an eternal romantic?

  35. #35
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: lazy gits

    I certainly dropped a tear...
    HTH
    Regards, Jeff

  36. #36
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Several of my contracts had the mathematical formula posted in the heading for that column and places like the Federal Reserve and Large Utilities didn't want formula laden spreadsheets.

  37. #37
    Registered User
    Join Date
    07-12-2012
    Location
    windhoek,namibia
    MS-Off Ver
    2007
    Posts
    5
    This may sound strange but i've been so careful to post when i knew the way to do stuff through formulae coz i thought all you guys prefer and advocate VBA! I am not a coding expert but can certainly help from a formula side.

  38. #38
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    Large Utilities
    i just saw that!
    i worked for one for nigh on 40 years and no one ever complained about over laden spread sheets, they were only to delighted anything worked better than an abacus

  39. #39
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Quote Originally Posted by xladept View Post
    Several of my contracts had the mathematical formula posted in the heading for that column and places like the Federal Reserve and Large Utilities didn't want formula laden spreadsheets.
    Excel's built in formulas & features are generally preferable & faster than VBA solutions

  40. #40
    Registered User
    Join Date
    06-19-2012
    Location
    Canada Eh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    40

    Re: lazy gits

    I love the title of this thread. I'm going to have to use the word git in my vocabulary from now on! UK English has some of the best slang and explicit words that I have ever seen or heard! You guys rock!
    EF killed Mordred

    46 & 2 is just ahead of me!

  41. #41
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    The thing is that if you're going to leave your work behind, you don't want the client's specialists adapting or even destroying your work. I've been at it, one way or another, also over 40 years.

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

    Re: lazy gits

    Quote Originally Posted by royUK View Post
    Excel's built in formulas & features are generally preferable & faster than VBA solutions
    It may be your personal preference....; there's no general preference.
    It's also highly dependent on personal skills.



  43. #43
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    The thing is that if you're going to leave your work behind, you don't want the client's specialists adapting or even destroying your work
    nope ,maybe they will pay you chunks of dosh to fix it after you have left!

  44. #44
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: lazy gits

    Quote Originally Posted by martindwilson View Post
    nope ,maybe they will pay you chunks of dosh to fix it after you have left!
    I do that quite a lot; fixing models (with spreadsheet formulas) for clients after they've made a mess of it! But I'd rather they didn't mess it up and just be happy...
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  45. #45
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: lazy gits

    Quote Originally Posted by martindwilson View Post
    nope ,maybe they will pay you chunks of dosh to fix it after you have left!
    This would work well for me. I've littered my workplace (government office) with a plethora of workbooks laden with formulas to make MY life in the office as easy as possible. The minute I leave that job, they're screwed with a capital WTF!
    If I've been of help, please hit the star

  46. #46
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Shaft City!!

  47. #47
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    hmmmmmmmmmmmmmmmm

  48. #48
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    @ snb
    It's also highly dependent on personal skills.
    ... and indeed, you have more than most ...

  49. #49
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    and marcol and snb went of together in a shower confetti singing the excel song

    give us an e
    give us an x
    give us an c
    give us another e
    give us an array that can finish this chant
    {vba vba vba....}
    Last edited by martindwilson; 07-13-2012 at 08:47 PM.

  50. #50
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Quote Originally Posted by snb View Post
    It may be your personal preference....; there's no general preference.
    It's also highly dependent on personal skills.
    Not just my opinion

  51. #51
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    I hadn't thought about job security - with my acute lack of business acumen, I was proud to have left my clients with virtually maintenance free routines and systems.

    I will say that I find the versatility of your formulas fascinating and I'm absorbing as much as I can and as quickly as I can (not very).

  52. #52
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    Always excel functions first! Vba is way to slow with any serious spreadsheet. Dont get to carried away its not brain surgery anything can be developed when your gone.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  53. #53
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Still there are realms in which each excels(!).

  54. #54
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: lazy gits

    Quote Originally Posted by Spencer101 View Post
    This would work well for me. I've littered my workplace (government office) with a plethora of workbooks laden with formulas to make MY life in the office as easy as possible. The minute I leave that job, they're screwed with a capital WTF!
    Snap! I left and left them to it, having left the odd "self destruct" button - "DO NOT PRESS".

    Attached example had a mixed reception. (Its safe - only takes you to another sheet, but they didn't know that)
    Attached Files Attached Files
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  55. #55
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: lazy gits

    @Russell Dawson

    "request reset to connection between chair and keyboard" Hahahaha! Excellent stuff

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

    Re: lazy gits

    @Pike

    Quote Originally Posted by Pike
    Always excel functions first! Vba is way to slow with any serious spreadsheet.
    Please post your sample workbook to illustrate your assertion.... (see the forum rules !)
    BTW I prefer funny spreadsheets, not serious ones.

  57. #57
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    Hi snb
    no problems I'll PM the excel workbook tomorrow .. by the way the roman bronzes were amazing

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

    Re: lazy gits

    Je suis curieus...
    Last edited by snb; 07-22-2012 at 07:13 AM.

  59. #59
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    snb
    In the mail at [email protected] - it preforms many iterations calxs and takes around 5 seconds - adding any VBA slows the calxs down dramatically.

  60. #60
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    John Walkenback compares the three ways

    The trade off between speed and file size

    Basic Formula calx time 10.8 seconds filesize 24.4 mb
    MegaFormula calx time 6.2 seconds file size 8.9mb
    VBA calx time 106.8 second filesize 8.6 mb

  61. #61
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: lazy gits

    I don't understand the assertion that formulas are easier for the client to screw up? If the spreadsheet is properly locked down, how are the formulas any easier to get to than the VBA? It would be nice if Data Validation and Conditional formatting could be locked down so easily. Maybe in some future version.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  62. #62
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Logic is nice but not always relevant in human situations. I've actually watched specialists go through the entire procedure to unlock and destroy formulas entered in cells!

    Incredible, to be sure!

  63. #63
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: lazy gits

    To me that would imply that either they were not in fact specialists or the formulas in question were incorrect/inefficient. (I've done that myself to workbooks, and other applications, created by consultants. )

  64. #64
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    I've found that "specialist" is actually an euphemism.

  65. #65
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: lazy gits

    I've never actually heard the term used in connection with Excel, but have often thought the same thing about consultants and system analysts...

  66. #66
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Yeah - I remember, years ago when I was writing COBOL and I used what is now called the immediate if - the systems analyst couldn't get it and was actually amazed that it worked!

  67. #67
    Registered User
    Join Date
    06-19-2012
    Location
    Canada Eh
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    40

    Re: lazy gits

    I specialize in specialties. That makes me a specialist! I prefer VBA over any other solution and don't see why it would be poo-pood on?!? I know that the people I write procedures for couldn't care either way, as long as the workbook is working right in the end.

    @Tigeravatar, I tried your code for beer dispensing but it poured week-water tasting beer at run-time. I think it needs to be amended by demography so that the proper beers/ales are poured.

  68. #68
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: lazy gits

    I bet if MS made beer function a built-in function for excel, it would pour beer faster and of right strength!

    I agree with ChemistB...if properly designed, a solution using built-in function will be more robust, faster and easier to maintain. I love VBA....but if built-in functions can do the job...why go through all the pain of coding and error handling etc etc?
    Regards,
    Vandan

  69. #69
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    What's the real advantage that the built-ins have over the VBA - isn't it that they avoid the I/O?? If you got it all into core the VBA would run just as fast if not faster; I find myself using a lot of UDT's for that very reason.

  70. #70
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lazy gits

    some users will ask for code to do a simple function,what is the point of that? reinventing the wheel?

  71. #71
    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: lazy gits

    Formulas run in process; VBA runs out of process, and every read or write requires a function call.
    Entia non sunt multiplicanda sine necessitate

  72. #72
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: lazy gits

    formulas are compiled code, VBA is not.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  73. #73
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    to reiterate vba is slow

    John Walkenback compares the three ways

    The trade off between speed and file size

    Basic Formula calx time 10.8 seconds filesize 24.4 mb
    MegaFormula calx time 6.2 seconds file size 8.9mb
    VBA calx time 106.8 second filesize 8.6 mb

  74. #74
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: lazy gits

    Prime example to go with this threads title.

    Why do I think the OP isn't going to make any attempt to tidy it themselves and is going to post the whole recorded code scrolls and all?

    http://www.excelforum.com/excel-prog...ng-in-vba.html

  75. #75
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: lazy gits

    pike, do you have a link for that?

    china plate

  76. #76
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    No, its in a passage from Excel Power Programmming by John Walken Back

  77. #77
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: lazy gits

    Quote Originally Posted by WasWodge View Post
    Prime example to go with this threads title.

    Why do I think the OP isn't going to make any attempt to tidy it themselves and is going to post the whole recorded code scrolls and all?

    http://www.excelforum.com/excel-prog...ng-in-vba.html
    I take it back the OP came back with a solution themselves (although I am not sure they actually did it themselves)

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

    Re: lazy gits

    Quote Originally Posted by pike View Post
    No, its in a passage from Excel Power Programmming by John Walken Back
    Now that is hardly a convincing argument (to put it mildly).
    Please show the files, please post the code, (see the forum rules ...)

  79. #79
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: lazy gits

    Which forum rules states you have to prove the point?

    Charles Williams is an expert in Excel "speed" - see his reply here

    ---------- Post added at 01:08 PM ---------- Previous post was at 01:07 PM ----------

    Which forum rules states you have to prove the point?

    Charles Williams is an expert in Excel "speed" - see his reply here

  80. #80
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    Nice to see you're using the built in "double post" facility on this forum to stress your point Roy ...

    How many times now have the lazy gits told us that this was cured?

    [EDIT]
    Now where did that second post go ... Looks like it's been merged!
    Last edited by Marcol; 08-09-2012 at 08:20 AM.

  81. #81
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    Hope I dont cross any copy rights Attachment 173318


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

    Re: lazy gits

    @Pike

    That doesn't add anything to 'proving' in my view.
    JW is by the way talking about a VBA Function (I suppose a UDF).
    That doesn't bear upon using VBA in general and the calculations you can perform without writing each result to a worksheet.

  83. #83
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    And, VBA is more versatile than the canned functions and formulas.

  84. #84
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lazy gits

    And, VBA is more versatile than the canned functions and formulas.
    ....
    Especially so if you can't be bothered learning "the canned functions and formulas."

    See the thread title ...

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

    Re: lazy gits

    Quote Originally Posted by Marcol View Post
    ....
    Especially so if you can't be bothered learning "the canned functions and formulas."

    See the thread title ...
    I sort of disagree with that! I've spent all my time learning VBA that I haven't had the time to learn canned functions and formulas. I don't consider myself lazy because of it...there's just not enough time in a day to learn it all.
    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---

  86. #86
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: lazy gits

    Hi snb,

    Its no big deal as I've stated before there is little difference in small projects

    The e-mailed workbook is the proof that when you do major engineering calx's there is no comparison between the faster Excel Functions over VBA.

  87. #87
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: lazy gits

    Nothing seems more esoteric to me than seeing VBA coded to envelope the canned whatever.

  88. #88
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: lazy gits

    Test post.......................

  89. #89
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: lazy gits

    Where is this code for pouring beer, i am now interested and want to know more about the syntax for this.


  90. #90
    Registered User
    Join Date
    01-31-2013
    Location
    Dhaka,Banglades
    MS-Off Ver
    Excel 2007
    Posts
    0

    Re: lazy gits

    Guy's are the excell formula and sql quarry same?I want to know about that...pls help.

  91. #91
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: lazy gits

    no-they are completely different

  92. #92
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: lazy gits

    Manali,

    Please post your question in the appropriate subforum.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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