+ Reply to Thread
Results 1 to 4 of 4

How to delete data from worksheet

  1. #1
    Registered User
    Join Date
    10-14-2008
    Location
    India
    Posts
    40

    How to delete data from worksheet

    Hi,

    I have created a user form in VBA and that form searches for data from one worksheet depending on the data in Column 1 and displays it on the text boxes in the form. Attached is the excel sheet. If you click on the button 'Click here for asset return' it opens a VB form and then If you enter the employee name it searches the same in the Issue Worksheet and diaplayes the asset owned by the employee.

    When ever I click on Update Return Master Button it creates an entry into the Returns worksheet. I want that when it is writing the entry into the Return worksheet it should delete the entry from Issue simultaneously.

    Can you help me with this please.

    Thanks
    Mayank
    Attached Files Attached Files
    Last edited by VBA Noob; 11-24-2008 at 09:09 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The databaseform example has a delete function

    http://www.excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-14-2008
    Location
    India
    Posts
    40
    Thanks for the help, but the code in this example is deleting from the same worksheet.. I need to delete the data from a different sheet.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Then amend the code to work with the sheet that you require

+ 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