+ Reply to Thread
Results 1 to 5 of 5

Looping

  1. #1
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    372

    Looping

    In this attachment, I'm running a loop for serial numbers but it runs upto 32000 or it creates upto 32000 serial numbers, if I want to create 100K, or 300K then from where the code will be changed.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: Looping

    The issue is you have x as Integer, it needs to long for stuff over 32000
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Looping

    if you go to how you run the code, choose edit, then the change in the code should be obvious! as well as changing the type to long

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Looping

    Another way:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    372

    Re: Looping

    Hi Daveexcel

    Thank you very much for your quick reply and solution

+ 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. # 2 looping if yes vba run#
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2016, 07:07 AM
  2. [SOLVED] looping help
    By squirrely in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 09:08 PM
  3. Need to use looping
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 08:49 AM
  4. Do Until Looping (not looping through all other columns)
    By orle8050 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 10:37 AM
  5. Looping through row
    By dirtydan86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2012, 10:53 AM
  6. Help with looping
    By enhydra in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-04-2011, 11:13 AM
  7. Help:Looping
    By Buffyslay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2006, 02:00 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