Results 1 to 8 of 8

trouble with 'cells.find' returning error

Threaded View

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2007
    Posts
    37

    trouble with 'cells.find' returning error

    Hi,

    I am wondering if anyone has a solution to my problem. I am trying to set up a command button in the "FORMS" sheet called "Add new employee" that runs a form and macro to add employees to the "Station Capacity" sheet. I have attached the Excel Spreadsheet that I am working on, but the trouble bit of code that is producing the error is given below.

    Cells.find(What:=x, After:=ActiveCell, LookIn:=xlFormulas, _
    LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
    MatchCase:=False, SearchFormat:=False).Activate

    I would appreciate any help with fixing this.

    The funny thing is that when you run the macro "moveest" separately the code works. But when added to the command button "Add new employee" it doesn't.

    Thanks so much.
    Cheers,
    Laura
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Nested IF statements are returning FALSE values - cannot find error in code!
    By apex_chio in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2013, 11:01 PM
  2. [SOLVED] Trouble with Find Error Checking: Is Nothing and Is Not Nothing returning the same results
    By k64 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2013, 09:02 PM
  3. trouble with vba code for Find, Insert copied cells and find next
    By jgelbach in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-26-2012, 01:45 PM
  4. Find function returning error
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-10-2010, 10:45 AM
  5. Find Function returning error
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2009, 09:59 AM

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