Results 1 to 23 of 23

Pulling data from a main sheet and placing it onto a newly created sheet

Threaded View

cbomination Pulling data from a main... 05-24-2012, 09:08 AM
arlu1201 Re: Pulling data from a main... 05-24-2012, 09:22 AM
cbomination Re: Pulling data from a main... 05-24-2012, 09:37 AM
arlu1201 Re: Pulling data from a main... 05-24-2012, 09:52 AM
cbomination Re: Pulling data from a main... 05-24-2012, 10:01 AM
arlu1201 Re: Pulling data from a main... 05-24-2012, 10:07 AM
cbomination Re: Pulling data from a main... 05-24-2012, 10:16 AM
cbomination Re: Pulling data from a main... 05-24-2012, 12:57 PM
arlu1201 Re: Pulling data from a main... 05-24-2012, 02:31 PM
cbomination Re: Pulling data from a main... 05-24-2012, 03:51 PM
arlu1201 Re: Pulling data from a main... 05-25-2012, 07:46 AM
cbomination Re: Pulling data from a main... 05-25-2012, 09:14 AM
arlu1201 Re: Pulling data from a main... 05-25-2012, 09:20 AM
cbomination Re: Pulling data from a main... 05-25-2012, 09:07 AM
arlu1201 Re: Pulling data from a main... 05-25-2012, 09:12 AM
cbomination Re: Pulling data from a main... 05-25-2012, 09:22 AM
arlu1201 Re: Pulling data from a main... 05-25-2012, 09:23 AM
cbomination Re: Pulling data from a main... 05-25-2012, 09:26 AM
cbomination Re: Pulling data from a main... 05-25-2012, 09:31 AM
arlu1201 Re: Pulling data from a main... 05-25-2012, 09:53 AM
cbomination Re: Pulling data from a main... 05-25-2012, 10:00 AM
arlu1201 Re: Pulling data from a main... 05-25-2012, 10:05 AM
cbomination Re: Pulling data from a main... 05-25-2012, 10:12 AM
  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Pulling data from a main sheet and placing it onto a newly created sheet

    I have a large set of data that is broken into regions that have a number value. ie 11, 15, 18 for example. I have code that will pull certain columns from this data set and place it into a new sheet, but it is coded in a way that if new data entry is input into a row it will screw up the entire thing. I would like to know if there is a way to have an input box that will search for a region number in Column A and then pull the given columns like in the previous code and place it onto a new sheet.

    sample of the original code is:
    If Newname = "15" Then
        Sheets.Add Type:=xlWorksheet
        ActiveSheet.Name = Newname
    Worksheets("PivTbl 2").Range("A5,A51:A56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
    Worksheets("PivTbl 2").Range("b5,b51:b56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 1)
    Worksheets("PivTbl 2").Range("i5,i51:i56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 2)
    Worksheets("PivTbl 2").Range("j5,j51:j56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 3)
    Worksheets("PivTbl 2").Range("k5,k51:k56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 4)
    Worksheets("PivTbl 2").Range("r5,r51:r56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 5)
    Worksheets("PivTbl 2").Range("s5,s51:s56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 6)
    Worksheets("PivTbl 2").Range("t5,t51:t56").Copy Worksheets(Newname).Cells(Rows.Count, "A").End(xlUp).Offset(-6, 7)
    End If
    Last edited by arlu1201; 05-24-2012 at 09:16 AM. Reason: Please put code tags in future.

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