+ Reply to Thread
Results 1 to 21 of 21

search code not returning values

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    search code not returning values

    ive got this bit of code im not sure if ive deleted something without realising but its for my search button on my user form and keeps returning a message about my item not being found when its clearly on my sheet, could someone please advise

    Please Login or Register  to view this content.
    see the other thing i want to try and do is edit the record and put it back in the same place.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    Your code uses the activesheet to search on. Is the activesheet the one with your data on it?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    ahh its supposed to lookup on worksheet "Expences"

  4. #4
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    i just tried it on the active sheet and still same problem

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    then you need to post example as the quick test I did worked

  6. #6
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    here you go
    link to file

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    why dropbox? forum has attachment capabilities

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    normal date format confusion when using find.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    where on userform is that

  10. #10
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    it was quicker i have dropbox on desktop and its quicker just to link to files from here....is it not allowed?

  11. #11
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    how can it be fixed please

  12. #12
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    ty for your help can the code be amended for my save changes so i can edit the record and put it back with it was?

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    where on userform is that
    where is what?

    it was quicker i have dropbox on desktop and its quicker just to link to files from here....is it not allowed?
    well it's quicker for me to click the attachment that spawn off to dropbox and download it from there.

    how can it be fixed please
    I posted revised code at post #8, did that not work for you?

  14. #14
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    not to worry with regards your last post, could you answer my last one please ty

  15. #15
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    and could you please point me in the direction of being able to cycle multiple items on selected date please.

  16. #16
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    to save your changes simply do the reverse.
    Locate the row and then output textbox values to cells rather than read from them.

    If you have records with shared dates you will either need to alter you UI to allow for selection of specific matching record. Or output the search information to a secondary useform in order to allow the user to select specific record and then populate your main userform fields.

  17. #17
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    dont understand do the reverse?

  18. #18
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: search code not returning values

    Read from sheet
    Please Login or Register  to view this content.
    Write to sheet
    Please Login or Register  to view this content.

  19. #19
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    does that get put under the same button or my save button and is it just that code or the whole code

  20. #20
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    i put this in my save button and throws up error on sheets

    Please Login or Register  to view this content.
    Last edited by flyinghigher2011; 07-18-2013 at 01:19 PM.

  21. #21
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: search code not returning values

    sorted never mind thank you for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-06-2012, 08:25 AM
  2. [SOLVED] Looking for vba code that will search sheet for a value on a row and copy other values.
    By Justin25150 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2012, 12:34 PM
  3. sub string search returning multiple values
    By AackwardsBassLogic in forum Excel General
    Replies: 2
    Last Post: 05-23-2012, 10:04 PM
  4. [SOLVED] VBA code to search for a word and return the values of numerous corresponding cells.
    By Schwartz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2012, 03:25 PM
  5. Returning values using only 4 characters to search
    By Jim Green in forum Excel General
    Replies: 2
    Last Post: 05-23-2011, 08:11 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