+ Reply to Thread
Results 1 to 3 of 3

Devolver el registro ultimo

  1. #1
    Registered User
    Join Date
    02-16-2017
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    57

    Devolver el registro ultimo

    Good afternoon,

    I have a macro that returns the records, it's called "traer_dato".
    In cell "I10" I write the reservation number and when i press the "SEARCH" button must torn me back the last record.
    Is not work, Is bring me back a random record instead of the last record.
    In the sheet "BASE DATOS" I have recorded the number 29 several times.
    I attach the document.
    I hope that you can help me to help it work.
    Thanks and sorry for my bad english.
    Attached Files Attached Files
    Last edited by Joselica; 05-11-2021 at 04:44 PM.

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Devolver el registro ultimo

    Hola Joselica,

    I checked your macro and it does not seem to find a random match, rather it finds the first one, on line 3, the second line in the table, each time.

    I found that the find function can look from the bottom instead by adding a parameter.

    I believe that it works as you expect with this update.

    Change from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Dos this change work for you ?

  3. #3
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Devolver el registro ultimo

    Hola Joselica,

    If this helped you, please mark 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. Coloreando un Registro en Cada Grupo en un Rango
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-28-2005, 06:58 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