+ Reply to Thread
Results 1 to 2 of 2

Excel confused with Gap or bad programming?

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    london england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Excel confused with Gap or bad programming?

    Hi everyone, I'm a bit new to programming and just wonder if I'm confused with my programme below.

    The idea is when the button is pressed, the user should enter an invoice no, the programme should then check to see if that invoice is on the system and warn the user based on the outcome.

    However this is the issue I find, so lets say the invoice was SPR 12345 if I enter this in the search it returns that its not entered even if it is, however if I enter SPR12345 then it finds it.

    Likewise if it was actually SPR12345 and you enter SPR12345 then it wont find it, but if you put SPR 12345 then it will find it???

    Hence the message box at the bottom of the code.

    Just a little annoying and would like to resolve this,

    Any help appreciated!!!!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel confused with Gap or bad programming?

    Your logic seems to be:

    1. Read the value to find from Cell G31
    2. Ask the user for the value to find
    3. Store that in G31
    4. Search for the value read from G31 in step 1

    Surely you should be looking for the value stored in CancelTest...?

+ 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: 05-31-2014, 09:30 AM
  2. Excel 2007 Ctrl F Help - Very confused, please help!
    By jbl2cv00 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 09:31 PM
  3. Replies: 2
    Last Post: 02-12-2013, 01:58 PM
  4. Replies: 1
    Last Post: 10-03-2012, 10:32 PM
  5. Excel Tax Formula - very confused and looking for input
    By dangravelle5 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2012, 08:47 PM
  6. [SOLVED] Macro executes but not giving results :confused::confused::confused:
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 10:49 AM
  7. Autofill and programming -- I'm SO confused -- please help!
    By John in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2005, 10:06 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