Results 1 to 5 of 5

Failing to write a search and cut and paste macro

Threaded View

top_dog Failing to write a search and... 03-17-2014, 03:08 AM
nilem Re: Failing to write a search... 03-17-2014, 03:28 AM
top_dog Re: Failing to write a search... 03-17-2014, 04:17 AM
nilem Re: Failing to write a search... 03-17-2014, 04:35 AM
top_dog Re: Failing to write a search... 03-17-2014, 04:50 AM
  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Auzzie
    MS-Off Ver
    Office 365
    Posts
    57

    Failing to write a search and cut and paste macro

    I have successfully wrote a few Macros from reading the information on this forum. This one has got me beat after 3 days trying to figure it out, can someone please help me otherwise I might smash my laptop

    What I am trying to do is search for an identifying code and then cut in paste it into its own sheet. The macro needs to be able to grow and shrink as some weeks there might be 7 of them item and next 5, also sometimes there will be no data for that code. I think I have wrote a code that is pretty close but I am missing something

     For nidx = 0 To UBound(storeNos)
            Cells.Find(What:=storeNos(nidx), After:=ActiveCell, LookIn:=xlValues, LookAt:= _
            xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
                True, SearchFormat:=True).Activate
    Help will be much appreciated as I can then move on with my life lol
    Attached Files Attached Files
    Last edited by top_dog; 03-17-2014 at 04:52 AM. Reason: Pls use code tags around your codes.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] paste.special is failing
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-05-2014, 08:03 AM
  2. [SOLVED] How to write Macro that could cut and paste data
    By ims0phie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2013, 11:34 AM
  3. Replies: 2
    Last Post: 02-17-2012, 03:08 AM
  4. Search or lookup function... attempting and failing
    By jhubbzwhat in forum Excel General
    Replies: 4
    Last Post: 10-15-2008, 11:03 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