+ Reply to Thread
Results 1 to 7 of 7

make VBA code smaller

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Unhappy make VBA code smaller

    Hello friends,

    I'm a beginner with VBA and I want to ask if someone can provide me with the VBA code to make this long code as small as possible.

    Thank you in advance for any help offered.



    Please Login or Register  to view this content.

  2. #2
    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: make VBA code smaller

    Maybe like this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: make VBA code smaller

    Shg, thank you for your reply.

    How do I let the VBA code skip one column if it's empty and it doesn't need to be calculated?

    Greetings

  4. #4
    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: make VBA code smaller

    Use two lines of code.

  5. #5
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: make VBA code smaller

    I mean something like;

    If ActiveCell = "" then next ...

  6. #6
    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: make VBA code smaller

    No, like
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-06-2009
    Location
    Diemen, The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: make VBA code smaller

    It did not work so to make my query more clear I've attached an excel file.
    Attached Files Attached Files
    Last edited by roberto1111; 10-14-2009 at 05:12 PM.

+ 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