+ Reply to Thread
Results 1 to 3 of 3

Looking to shorten VBA code

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    1

    Looking to shorten VBA code

    Hello, I am very new to Excel and trying to learn how to shorten a marco that is recorded. Looking at the VBA code below, can you please offer any tips or advice to shorten the code. I am looking more for an explination of some things as opposed to someone solving shortening the code so I can learn. Thank you!

    Please Login or Register  to view this content.
    Last edited by swhite7; 07-02-2013 at 06:50 PM. Reason: Update Tags

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Looking to shorten VBA code

    could you
    (a) put code tags so code is easier to read?
    (b) explain what it's supposed to achieve?

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

    Re: Looking to shorten VBA code

    swhite7,

    Welcome to the forum! In the future, please wrap your code in code tags (link in my sig for how).
    As for your question, here is a re-written version of your code. I have included comments to help you understand.
    You may want to look up the Range.Sort method in order to really learn what the code is doing.
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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