+ Reply to Thread
Results 1 to 4 of 4

Loop running really slow...?

Hybrid View

  1. #1
    Buffyslay
    Guest

    Re: Loop running really slow...?


    paul.robinson@it-tallaght.ie wrote:
    > Hi
    > It is probably all the selecting you are doing
    > e.g.
    > ActiveCell.Offset(1, -18).Select
    > ActiveCell.Interior.ColorIndex = 44
    >
    > can be replaced with
    > ActiveCell.Offset(1, -18).Interior.ColorIndex = 44
    >
    > Try doing similar replacements throughout your code to eliminate as
    > many selects as you can (ideally all of them!!)
    > regards
    > Paul
    >




    so i should do something like:

    ActiveCell.Offset(0, 1).Formula = strForm1 & Arr(m, 5) & ",0)"
    ActiveCell.Offset(0, 1).Interior = 44

    but does that mean it will skip over 2?

    can i reference the range? and then pop in the formula?


  2. #2
    Buffyslay
    Guest

    Re: Loop running really slow...?

    i turned off the calculations

    Application.Calculation = xlManual

    wow! instant results!!!


+ 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