+ Reply to Thread
Results 1 to 4 of 4

Macros saved private - to public

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Macros saved private - to public

    I built to eased my job lots of macros. However, the majority are saved private, on my computer. So can only be accessed from my computer.

    There is a high probability that I will move up in the company in a different facility. My boss wants me to type work instructions for everything I did. I surely don’t want to redo the macros. I recorded them and most of them are accessing files saved in My Documents, as export from the main application we use. So even if lets’ say I would copy the macro and saved in in the spreadsheet, as long as is not accessed from this particular computer, it won’t work, right? Is there a way around it and I’m missing it?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: Macros saved private - to public

    Can you change the file names in the codes?

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macros saved private - to public

    Correct, if there are file paths in your code, then that path must exist, and if it is in my documents then the username is part of the path, so it would have to be someone logged in as you. Depending on the situation it may not be so hard to just do a find/replace to quickly fix most of the code.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    02-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Macros saved private - to public

    I might try that...changing the path with a new location. Although it makes me nervous.

+ 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. Public vs Private?
    By jplank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 03:05 PM
  2. [SOLVED] Private Sub Workbook_Open() Vs Public Sub Auto_Open()
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-12-2014, 07:10 PM
  3. Public variable in private routine across worksheets
    By LeanAccountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2014, 07:02 AM
  4. Replies: 6
    Last Post: 01-03-2014, 09:55 AM
  5. Convert this private sub to public sub to work
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2013, 02:59 PM
  6. Public or Private Variable
    By jo15765 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-12-2012, 02:46 PM
  7. Option Explicit function and private/public/dim
    By larryg003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2010, 03:01 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