+ Reply to Thread
Results 1 to 6 of 6

copying data from various sheets to a Team Sheet

  1. #1
    Registered User
    Join Date
    10-03-2010
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    13

    copying data from various sheets to a Team Sheet

    I'm trying to add numerical data contained in a set number of cells from various sheets to a 'Team' sheet. Each of the sheets have various names so i wanted to use the numerical value of the sheets. Also the number of sheets in the Workbook changes as named Sheets are added and deleted.
    Sheet 'Team' = Sheet1 & Sheet 'Perf' = Sheet2 are the only perminant sheets. 'Perf' does not have any data taken from it nor added to it.

    The Code that i set up is:

    Please Login or Register  to view this content.
    Unfortunately it doesnt work. I think my problem is that i'm refering to the name of the sheets opposed to the numerical value.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: copying data from various sheets to a Team Sheet

    How does it not work? What happens - do you get an error, does it do nothing, does it do the wrong thing?

  3. #3
    Registered User
    Join Date
    10-03-2010
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: copying data from various sheets to a Team Sheet

    There is a Run-Time error '1004'
    Select Method of Range class failed

    This happens on line :

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: copying data from various sheets to a Team Sheet

    In-Venutus,


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


    Please Login or Register  to view this content.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: copying data from various sheets to a Team Sheet

    Stanley has probably already solved your problem but see if this works - the Selects may have been messing things up.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-03-2010
    Location
    Wales
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: copying data from various sheets to a Team Sheet

    Thanks for your help. It seems ok now

+ 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