+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP after returning, delete the value base

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    VLOOKUP after returning, delete the value base

    Hi

    I have a code that works well.
    now I need to delete this code from my database if it finds the value that was returned to guide called "NOVA.BD"

    That is, I need to look for the code on the sheet "BASE.DADOS.ANTIGA" value "X" to copy to the sheet "NOVA.BD" and eliminate the respective row in sheet "BASE.DADOS."


    Cross-Post
    http://www.thecodecage.com/forumz/mi...alue-base.html
    Attached Files Attached Files
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    HI

    Any idea?

    Thank you!!

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    Hi

    I need the result returned from VLOOKUP, be excluded from my spreadsheet where my database

  4. #4
    Registered User
    Join Date
    12-02-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003,2007
    Posts
    17

    Re: VLOOKUP after returning, delete the value base

    HI

    So there is no need to delete the code from the file. Can you please explain us what exact output you are looking for?

    Thanks
    Excel-walker

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    Hi.
    my VLOOKUP returns a value from a database, which called "BASE.DADOS.ANTIGA", this data will be returned in the "NOVA.BD"
    after returning I need this data to be deleted from the database "BASE.DADOS.ANTIGA"

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    Hi
    I need a VBA code to look in column "D" on the worksheet called "NOVA.BD"
    after finding these values​​, go to the worksheet "BASE.DADOS.ANTIGA" and check if there is these values
    if you encounter eliminate (delete) the row containing this value

    Thank you!!

  7. #7
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VLOOKUP after returning, delete the value base

    Hi, marreco,

    please give this code on a copy of your workbook a try:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    once again was perfect!!
    I can not click on the star

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: VLOOKUP after returning, delete the value base

    Hi, marreco,

    I can not click on the star ´
    No problem with that - it should be a setting in vBulletin from the administrators on how many days should pass or many other users you need to spend some rep on before you may "donate" on me again (ar least it was like that when I was working with vBulletin 3.5.something and may still be).

    Glad you got the problem solved.
    Holger

  10. #10
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: VLOOKUP after returning, delete the value base

    different approach
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: VLOOKUP after returning, delete the value base

    Hi
    great, tested it and it looks great!

+ 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