+ Reply to Thread
Results 1 to 8 of 8

Please tell me simple search vba code ? my vba vlookup code not working..

  1. #1
    Registered User
    Join Date
    01-26-2018
    Location
    abudhabi
    MS-Off Ver
    2007
    Posts
    17

    Please tell me simple search vba code ? my vba vlookup code not working..

    Please Login or Register  to view this content.
    sorry i will be back later
    Last edited by AliGW; 01-26-2018 at 06:27 PM. Reason: Code restored and code tags added.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    Also could you add how it isnt working. Do you get an error message, does it return the wrong result or no result (what do you get and what do you expect to get)? Does the formula work correctly if you place it on a sheet manually?
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  4. #4
    Registered User
    Join Date
    01-26-2018
    Location
    abudhabi
    MS-Off Ver
    2007
    Posts
    17

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    yes getting some error code

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    Why have you deleted the code? You were asked to put code tags round it, not delete it. Do you still need help? If so, then I will add the code tags for you as a gesture of goodwill, however you must do this yourself in future.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    Hello aliakbaram85,

    Welcome to the Forum!

    The problem I see is you are assigning a Text value to an Integer. TextBoxes always return text values. I have modified your code to change the text to an integer.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Registered User
    Join Date
    01-26-2018
    Location
    abudhabi
    MS-Off Ver
    2007
    Posts
    17

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    thanks a lot Leith Ross

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: Please tell me simple search vba code ? my vba vlookup code not working..

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Working code need to be expanded to multi search also.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2014, 12:08 AM
  2. Replies: 1
    Last Post: 11-13-2013, 10:28 AM
  3. [SOLVED] userform search code not working
    By vickyp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 02:33 PM
  4. Search code not working
    By vampyr07au in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2011, 08:23 AM
  5. Simple Code not working after switch to 07'
    By livinglegend629 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-01-2011, 03:03 PM
  6. Very simple code not working
    By hockey123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2010, 05:57 PM
  7. Find/Search code tweak help - Hopefully simple :)
    By valius in forum Excel General
    Replies: 2
    Last Post: 06-12-2009, 09:28 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