+ Reply to Thread
Results 1 to 6 of 6

VBA - Need Help Changing the Source of Information

  1. #1
    Registered User
    Join Date
    09-30-2020
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    2016
    Posts
    3

    VBA - Need Help Changing the Source of Information

    This is the code that has been written. The original writer has left the organization and I need to update the source location.

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 09-30-2020 at 01:13 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA - Need Help Changing the Source of Information

    There is no code here that actually references any location. What do you mean by "source location"?

    MyName is set to the path of the workbook containing this code, but it is never used for anything. There is no hard-coding of a location.

    Maybe it would help to show all the code.

  3. #3
    Registered User
    Join Date
    09-30-2020
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    2016
    Posts
    3

    Re: VBA - Need Help Changing the Source of Information

    My apologies as it didn't copy over completely.

    See the full code below.

    Please Login or Register  to view this content.
    Last edited by Jhouston; 09-30-2020 at 01:42 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA - Need Help Changing the Source of Information

    The code cycles through all of the files that are in the same folder where this workbook is. All you have to do is put this file into the same folder with the files you want to work on.

  5. #5
    Registered User
    Join Date
    09-30-2020
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    2016
    Posts
    3

    Re: VBA - Need Help Changing the Source of Information

    It worked! Thank you very much.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA - Need Help Changing the Source of Information

    Glad we solved that without code changes! If you want to modify to work on files in any folder the user chooses, that could be done too. Come back to ask if you need that.

+ 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: 09-28-2016, 02:09 PM
  2. Confirming Macro Source Information
    By danweeks20 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2013, 02:31 AM
  3. Great source of information!
    By PSP92630 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-25-2012, 03:47 AM
  4. This is a great source of information and solutions!
    By KarenYK in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-21-2012, 09:48 AM
  5. [SOLVED] Pulling information from a source sheet
    By dtanios in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-17-2012, 02:15 PM
  6. [SOLVED] Pulling information from a source sheet
    By dtanios in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2012, 09:13 PM
  7. Replies: 0
    Last Post: 05-03-2011, 03:51 PM

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