+ Reply to Thread
Results 1 to 4 of 4

Checking if text appears in a cell.If not copy and paste Information.Object Required error

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Checking if text appears in a cell.If not copy and paste Information.Object Required error

    Hi All,

    Hopefully you can help me. I have tried writing some VBA and failing quite poorly, before this I had written a filter for the information but now need to get it into another worksheet.

    Here is the code I have written, I have no idea where I have gone wrong!

    Please Login or Register  to view this content.
    Thanks in advance,

    Danny

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Checking if text appears in a cell.If not copy and paste Information.Object Required e

    I think you need to use Cells (i,2) and nor Range (i,2). When you have two numbers to referencing a cell you can't use Range.

    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Checking if text appears in a cell.If not copy and paste Information.Object Required e

    Thank you Antonio. That worked perfectly. One more question, how would I make it move onto the next row please? Also how do I set the range for how many rows to go down to?

    Regards

    Danny

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Checking if text appears in a cell.If not copy and paste Information.Object Required e

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

+ 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