+ Reply to Thread
Results 1 to 6 of 6

loop

  1. #1
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    loop

    Here is my current code (just a section)


    Is there a loop that could possibly do this faster. Sometimes I load 100's of fields on the userform


    Please Login or Register  to view this content.


    Thanks for any help


    Josh

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I suggest you use a serch function - much quicker than loops.

    I aslo suggest you do not activate and select sheets, columns, rows, cells etc which also slows macros down. Your use of offset shows you just one way of dealing with cells without selecting them.

    Try this code

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    thank you for the response.

    I am in the process of converting my code to the new code.


    thanks for the help


    Josh

  4. #4
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    I get a runtime error 424

    I tried the code and I am getting a runtime error message of 424


    Object required.


    And it highlights the section where you are setting rfound.



    thanks for any help


    Josh

  5. #5
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Anyone have any ideas on how to set the object required here?

    Thanks


    Josh

  6. #6
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    change

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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