+ Reply to Thread
Results 1 to 15 of 15

Giving colleagues VBA code - best suggestion

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Giving colleagues VBA code - best suggestion

    Hi all

    I recorded a simple macro to identify any blank cells, conditional format these in red

    Please Login or Register  to view this content.
    My question is I I saved these in my personal workbook.. but I want to share these with multiple colleagues

    what/how should i share it? they will need to use the code on multiple workbooks?

    Thanks
    Last edited by rayted; 10-05-2023 at 11:39 AM.
    Thanks,

    R.



  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Giving colleagues VBA code - best suggestion

    A common thing I've seen is people like to keep macros in a separate workbook, and having this workbook running in the background. That way the macro can be called from the background workbook into the active workbook.

    You could do the same and have your colleagues open up a shared copy.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Giving colleagues VBA code - best suggestion

    You should avoid Selecting objects. This does the same thing without Selecting the range.

    Please Login or Register  to view this content.
    I agree with PrizeGotti. Save any macros you want to share/distribute in a separate file and give them that. If they load that first, or when they need it, they can call the macros from the "macro store". I have to be honest and say that I have never used a Personal Workbook.
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Giving colleagues VBA code - best suggestion

    Hi all,

    Apologies - what would be the process if i've given them the macro WB, how do they run it in each workbook they will need to use the macro in?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    @rayted

    Please read and act upon post #2. Thank you.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Giving colleagues VBA code - best suggestion

    Thanks for the rep.

    We cannot take this discussion further until you act upon the instructions from the Moderator. Please apply Code Tags in your original post.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    Yes, you can - this is a guideline (not a rule), but the OP hs been a member long enough to add the code tags himself. I should like him to so so, but the thread can continue. I shall get a bit irritated if he carries on ignoring me, though ...

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    LOL! Just noticed that he's given me rep for post #2, but done nothing about it.

    @rayted - CODE TAGS, please!!!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Giving colleagues VBA code - best suggestion

    Still a bit sensitive about "guidelines".

    Please read and act upon post #2. Thank you.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    Thread titles and code tags are now guidelines - I'd expect Gurus to reinforce the message, but we don't stop threads over it any longer.

    Hope this helps.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Giving colleagues VBA code - best suggestion

    We are also told to leave Moderation to Moderators. And that suits me just fine.

    Had you not intervened, I would happily carry on. Now that you have, I will wait for the OP to respond. Simple.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    I shall reply via PM so as not to clutter the thread.

  14. #14
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Giving colleagues VBA code - best suggestion

    Hi both,

    My apologies - I hope I've successfully edited my post to be in line with the guidelines from @aligw :-) sorry!

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Giving colleagues VBA code - best suggestion

    Woo-hoo! Thanks - please remember to add them in future.

+ 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: 3
    Last Post: 09-14-2022, 05:02 PM
  2. Replies: 5
    Last Post: 09-05-2016, 11:55 AM
  3. [SOLVED] Code won't run on colleagues PC
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2014, 07:15 AM
  4. [SOLVED] Giving suggestion list while typing
    By olivarsham in forum Excel General
    Replies: 1
    Last Post: 01-25-2013, 01:11 AM
  5. code explanation and suggestion
    By JohnSeito in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2007, 08:04 PM
  6. [SOLVED] code suggestion
    By sunkosi in forum Excel General
    Replies: 2
    Last Post: 05-04-2006, 10:30 PM
  7. Looking For A Suggestion About How To Write Code
    By abxy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2005, 03:15 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