+ Reply to Thread
Results 1 to 8 of 8

Extract data from one sheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Extract data from one sheet

    Hi all.

    I have a workbook with 2 sheets. I have a userform which pulls data from Sheet1 into a listbox (does some editing) and then places the data into Sheet2.

    This is all working fine, however I need the data to be deleted from Sheet1 when it has been moved. How do I go about doing this?

    Please see attached .xls
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Unhappy Re: Extract data from one sheet

    Anyone know how I should be approaching this?

    I really just want to move data from one sheet to another via a userform.

    I've done my best to google this but just can't find what I need.

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Extract data from one sheet

    Something like this:
    Sub delData()
    Application.Worksheets("Sheet1").Range("A2:E100").Clear
    End Sub
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Extract data from one sheet

    The last post clear all except the headings. If you want it all to clear just change the range.

  5. #5
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: Extract data from one sheet

    Thanks for that

    Problem is I don't want to clear all the data, I want it so that when you select a row in the list box and move it to Sheet2, it deletes only that selected row.

    Now, the list box could list 20 rows, and I select row 18 and copy that to Sheet2, I want it to only then delete row 18 (the selected row) from sheet1, leaving 19 rows in Sheet1 and 1 in Sheet2.

    Does that make anymore sense?

  6. #6
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: Extract data from one sheet

    Anyone? I'm sure there's a simple solution to this that I'm just not getting...

  7. #7
    Registered User
    Join Date
    08-23-2010
    Location
    india,Chennai
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Extract data from one sheet

    Try this

    Set fin = Sheets(1).Cells.Find(What:=issuesdesc_text.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
            xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
            , SearchFormat:=False)
            
            fin.EntireRow.Delete
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-05-2011
    Location
    Makat, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Extract data from one sheet

    I have email master database file and I have another email database file which I called bad email addresses.
    I need to delete all email address from the bad email address file in my email master database file. Anyone who knows a tool from MS EXCEL 2007 that could automate this deletion process please post.

+ 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