+ Reply to Thread
Results 1 to 5 of 5

Go down range, then cut, offset, paste

  1. #1
    Registered User
    Join Date
    12-09-2008
    Location
    Canada
    Posts
    79

    Go down range, then cut, offset, paste

    Hi Guys,

    I am trying to create a macro that goes down Column A of my sheet and looks for a string, "Number". When it finds it, it resize (0, 14) and cuts.

    Then it pastes the array at an offset of (-1, 10) This is what I got so far:

    Please Login or Register  to view this content.
    Please advise..
    Last edited by GeorgY; 01-28-2009 at 04:32 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Go down range, then cut, offset, paste

    Try using Find. If you have more than one instance of "Number" this code will need adjusting.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2008
    Location
    Canada
    Posts
    79

    Re: Go down range, then cut, offset, paste

    Thanks for replying. My experience with the Find function is that it's pretty slow. I have about 2000 "Numbers" in column A and this will take a while. I am looking for a quicker way to do this...

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Go down range, then cut, offset, paste

    I think you'll find Find faster than a For-Next loop.

  5. #5
    Registered User
    Join Date
    12-09-2008
    Location
    Canada
    Posts
    79

    Re: Go down range, then cut, offset, paste

    Thank you, works fine now.

+ 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