+ Reply to Thread
Results 1 to 5 of 5

Shorter means of looping

  1. #1
    Registered User
    Join Date
    10-10-2014
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    37

    Shorter means of looping

    Hi,

    The code below does what i need it to but i get the feeling that it is more code than is necessary. I would prefer to be able to just use one for loop for all my if statements but when i run that code i get a compile error : next without for. Any suggestions would be great

    Thanks,
    SPM

    Please Login or Register  to view this content.
    Last edited by silkpantsman; 10-05-2015 at 05:49 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Shorter means of looping

    Try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-10-2014
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    37

    Re: Shorter means of looping

    Thanks zbor
    Last edited by silkpantsman; 10-05-2015 at 05:47 AM.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Shorter means of looping

    Or Case statement for more criteria

  5. #5
    Registered User
    Join Date
    10-10-2014
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    37

    Re: Shorter means of looping

    Cool i dont know CASE at all, will check it out.

+ 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. Use a shorter code
    By tax112 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2015, 02:54 AM
  2. comparing means by means of Least Significant Differences (LSD) method
    By rmrf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2013, 12:14 PM
  3. [SOLVED] Trying to change verbose looping code into more efficient (and shorter) code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2013, 07:43 AM
  4. Shorter If statement
    By rwgrietveld in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-01-2008, 10:48 AM
  5. iso shorter equation
    By nastech in forum Excel General
    Replies: 0
    Last Post: 03-14-2006, 06:55 PM
  6. shorter macro
    By jdengel in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-08-2005, 01:05 PM
  7. Shorter Sub
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-08-2005, 09:07 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