+ Reply to Thread
Results 1 to 5 of 5

data transfer code issue

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    data transfer code issue

    The following code (made with the help of people on this site) allows me to transfer data from multiple sheets in the workbook to a single data sheet. I now need to add a reports page to get the most out of the data, but cant seem to figure out how to stop the "data" sheet code from pulling my pivot table on the "reports" page. Any help would be appreciated.



    Please Login or Register  to view this content.
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data transfer code issue

    Assuming the new sheet is called "Report", this line of code:
    Please Login or Register  to view this content.
    ...is added onto:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: data transfer code issue

    i will try that.
    Can I add endless sheets the same way just by extending the string?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data transfer code issue

    Certainly, but there are numerous ways to slay this dragon. If a workbook has 20 sheets and you want to import only a few of them, it might be easier to list the ones you DO want instead of an ever-growing list of ones you don't.

    Another way is to put a common unusual character in the sheetname of the ones you WANT to import. Perhaps a pipe character |
    This way you can write code once to only import sheets with that unique characteristic, and in the future no code edits are needed to change the included sheets, you can do it on the fly by adding/removing that unique characteristic.

    The same idea could be applied to a unique characteristic found on the sheets themselves. Perhaps the sheets to import all have a common text string not found elsewhere in the document..... hehe, like a cell that says "import me".
    Last edited by JBeaucaire; 09-23-2016 at 07:41 PM.

  5. #5
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: data transfer code issue

    thanks for the quick resolution

+ 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. VB Code to transfer row data into column
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2016, 03:33 AM
  2. Need help creating VBA code to transfer data
    By James__S in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2014, 11:25 AM
  3. VB Code to transfer Certain Row data into Column
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2013, 12:10 PM
  4. Code to Transfer Data from One Workbook to Another
    By boukmn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2011, 05:48 AM
  5. [SOLVED] how to transfer data using code
    By bunjijumper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2010, 01:15 AM
  6. Code for transfer data
    By tofimoon4 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-25-2009, 11:18 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