+ Reply to Thread
Results 1 to 7 of 7

I want to enlarge my 'for' limit

  1. #1
    Registered User
    Join Date
    07-04-2022
    Location
    Hungary
    MS-Off Ver
    2019
    Posts
    36

    I want to enlarge my 'for' limit

    Hey Guys!

    I have a "semi-large" database, between 3000 and 10 000 rows, changes daily, in the future it may be around 12 000 lines.
    My question: If i enlarge my for cycle like this:

    for i = 2 To 10000 ---> For i = 2 To 15000

    Will it make slower? My macro run? Mostly we work with ~6000 rows, but if it goes until 15k, i think thats not so good. Or is there any way? (There are empty rows between rows)

    Thanks

  2. #2
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: I want to enlarge my 'for' limit

    My guess is that it will get 50% slower ;-)
    To see how much that will hurt, please provide your code.

  3. #3
    Registered User
    Join Date
    07-04-2022
    Location
    Hungary
    MS-Off Ver
    2019
    Posts
    36

    Re: I want to enlarge my 'for' limit

    Yea i actually made it, to see it for myself, and it was ~1minute 10s before, and now its ~2min 25s, so yea, i got my answer :D

  4. #4
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: I want to enlarge my 'for' limit

    That's pretty long.

  5. #5
    Registered User
    Join Date
    07-04-2022
    Location
    Hungary
    MS-Off Ver
    2019
    Posts
    36

    Re: I want to enlarge my 'for' limit

    Yea, i have multiple for loops, basicially i use it in our warehouse, and i have multiple different product, so yea, i think thats why, but i can make it shorter if i add and extra 'If Cells(i,3) <> "" ', it made faster by ~0,5minute
    Last edited by bombapopsi; 12-02-2022 at 04:35 AM.

  6. #6
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: I want to enlarge my 'for' limit

    If you are happy then I am happy :-)

  7. #7
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: I want to enlarge my 'for' limit

    @ bombapopsi

    If you share your code here, by sure you will find a Guru, that can make it runs much, much faster
    Barriers are there for those who don't want to dream

+ 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. Enlarge a picture using VBA
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2015, 11:54 AM
  2. Enlarge a Chart
    By shane1966 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-05-2015, 04:52 PM
  3. Any way to enlarge graphs on the fly?
    By iluvmyelement in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2011, 05:04 AM
  4. How do I enlarge a pie chart?
    By Weasel in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-25-2008, 07:22 PM
  5. how to enlarge a userform...
    By rjahr01 in forum Excel General
    Replies: 2
    Last Post: 12-14-2006, 09:56 PM
  6. [SOLVED] enlarge drop-down contents
    By Chuckehall in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 03:55 PM
  7. How can i enlarge the checkbox in excel?
    By g6jonboy in forum Excel General
    Replies: 0
    Last Post: 04-12-2005, 06:06 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