+ Reply to Thread
Results 1 to 6 of 6

Learn all type of Loops with small simple example

  1. #1
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Learn all type of Loops with small simple example

    Hiii,
    I am beginner ..
    I want to learn VBA loops, I have searched on net but not able to understand as there is no explanations.. Can anyone attach excel workbook with all types of loops and all types of use of loops with small examples....

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Learn all type of Loops with small simple example

    Here!

    http://www.learn.net.au/vba/vba-loops
    Cheers!
    Deep Dave

  3. #3
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Learn all type of Loops with small simple example

    Thank you very much


    Only following two didnt understand..
    Sub LoopTime_Period() and Sub LoopTime_Count()
    Last edited by mangesh.mehendale; 07-06-2015 at 06:49 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Learn all type of Loops with small simple example

    ..and a word of caution. Learn about loops by all means. They have their uses. But don't get carried away with them.

    With large ranges to process they can be very slow to process since the code has to jump backwards and forwards between the Excel Application and VBA with a time overhead each pass through the loop. And for many tasks they just aren't necessary. I've lost track of the number of times I see a looping procedure being recommended when the more elegant, simpler and quicker approach of using standard Data Filtering in a macro really is the best way to handle large ranges of data.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Learn all type of Loops with small simple example

    Totally agree with Richard Buttrey!

    I was stuck up with Looping myself.. All my solutions used Loops, even when there were far better ways.

    Loops are important, but there are other ways which should not be ignored..

  6. #6
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Learn all type of Loops with small simple example

    Thats great... Thank you .... I will keep this in mind...

+ 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] Small Issue with Type Mismatch and Invalid Qualifier when setting variable value from cell
    By TomToms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 08:03 AM
  2. Simple THEN / IF type function
    By DIrish08 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-15-2014, 11:01 AM
  3. small problem with loops (I think)
    By vn900 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-15-2011, 08:46 PM
  4. [SOLVED] type 56092036 (C), ~, the (C) changes to a small c with a circle
    By Butch in forum Excel General
    Replies: 2
    Last Post: 07-14-2006, 10:51 AM
  5. [SOLVED] Simple Cash Flow Small business
    By Ed West in forum Excel General
    Replies: 0
    Last Post: 04-10-2005, 12:07 AM

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