+ Reply to Thread
Results 1 to 2 of 2

shorten code vba

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    76

    shorten code vba

    i've found that you could shorten your code.


    example:
    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.
    Could someone give me a brief on this subject?
    why/where to use and why/where not to use this
    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
    2010, 2019
    Posts
    40,689

    Re: shorten code vba

    The colon is just VBA's statement separator. It generally serves to make your code more difficult to read.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Represent (define?) a section of code with a variable (shorten long code lines)?
    By Gene@action in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2016, 03:59 PM
  2. Help to Shorten Code
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2014, 06:33 PM
  3. Hi all, can you please help me to shorten this code as much as possible
    By boddulus in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-31-2014, 07:31 AM
  4. [SOLVED] Shorten vba code.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2014, 10:17 AM
  5. [SOLVED] Very inefficient code because of different sizes of arrays, how do i shorten my code?
    By Brammer88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 04:49 PM
  6. How to shorten code
    By daymo in forum Excel General
    Replies: 1
    Last Post: 02-26-2007, 05:39 PM

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