+ Reply to Thread
Results 1 to 3 of 3

How can I tell Excel to not reference macros and source data of old files?

  1. #1
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    How can I tell Excel to not reference macros and source data of old files?

    I create a pivottable that references:
    Sheet1!$A:$H.
    Sometimes when I email that Excel file, or copy that Excel file, the pivottable source data will change to:
    C:\path\[filename]Sheet1!$A:$H.
    I rarely want this to happen. Can I write the source reference in another way that makes Excel understand that I always want it to point to "ThisWorkbook"?

    The same this happens when I assign a macro to a button. I can assign the macro
    CopyAllRows
    But when I email or copy the file, sometimes this will turn into:
    C:\path\[filename]CopyAllRows
    I rarely want this to happen. Can I write the macro path in another way that makes Excel understand that I always want it to point to "ThisWorkbook"?

  2. #2
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Re: How can I tell Excel to not reference macros and source data of old files?

    Here is a sample workbook:
    Test - Copy.xlsx

  3. #3
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Re: How can I tell Excel to not reference macros and source data of old files?

    Bump. Has anyone else experienced this?

+ 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. Replies: 2
    Last Post: 03-28-2014, 10:52 AM
  2. copying data from excel files in a source folder to target folder
    By Javed07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:27 PM
  3. Automating data import from multiple xls files to create 1 data source.
    By Anthem12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-03-2012, 05:00 PM
  4. Pulling data from source files
    By jpbirkett in forum Excel General
    Replies: 1
    Last Post: 08-20-2007, 07:21 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