+ Reply to Thread
Results 1 to 5 of 5

URGENCY Please: Delete a row by a textbox

  1. #1
    Registered User
    Join Date
    10-06-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    37

    URGENCY Please: Delete a row by a textbox

    Hi!

    Please help!
    So I have a form with a textbox to delete a row through the ID number, but when I delete the row, the ID numbers should always be aligned numerically (1,2,3,4). For this I use a function in the cells of the ID column like =IF(D7<>"",ROW()-6,"") The problem is that using the code I'm using to delete the row, it never finds the ID number to delete. I dont know why! The code is this:

    Please Login or Register  to view this content.
    Somebody help me!

    Are also trying to help me on this forum: http://www.vbaexpress.com/forum/show...340#post300340
    Last edited by carapins; 11-15-2013 at 01:56 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: URGENCY Please: Delete a row by a textbox

    Not sure what is LIN()

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-06-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: URGENCY Please: Delete a row by a textbox

    Sorry, the function is written in Portuguese, in English: IF(D7<>"",ROW()-6,"")

    Sixthsense, see the .xlsm to check out better the problem
    Last edited by carapins; 11-15-2013 at 12:59 AM.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: URGENCY Please: Delete a row by a textbox

    Hi carapins,
    if you want to find value returned by the formula, the method FIND not work. Try something like this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-06-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: URGENCY Please: Delete a row by a textbox

    Thanks nilem! It's working well! Awesome!

+ 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. Textbox.value from form, search on sheet2, Coloum B, and delete entire row?
    By JDExcel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2012, 02:17 PM
  2. Delete row on sheet with text from textbox value on a form?
    By JDExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2012, 11:42 AM
  3. [SOLVED] Copying txt from 1 textbox to another OR if value formatted a certain way delete the txt
    By saintsphan in forum Access Tables & Databases
    Replies: 2
    Last Post: 04-18-2012, 05:12 PM
  4. Delete String if in other Textbox
    By djblois1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2011, 09:29 AM
  5. Date & time input interface and show upcoming events based on urgency
    By Alheksi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2010, 08:26 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