Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2025, 08:32 PM
syl3786 syl3786 is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2019
Advanced Beginner
Best Practices for Storing .bas Files on a Common Drive
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Lightbulb Best Practices for Storing .bas Files on a Common Drive

Hi everyone,

I've been working on some VBA macros for MS Office (Word, Excel, PowerPoint) and saving them as .bas files.

However, I'm a bit concerned about storing these files on a common drive where anyone can access and potentially edit them without notice. I'm looking for some advice on the safest way to store these files.

I'd love to hear your thoughts and any additional tips you might have. How do you handle storing files like .bas on a shared drive? Any advice would be greatly appreciated!

Thanks a bunch!
Reply With Quote
  #2  
Old 02-10-2025, 08:58 PM
Guessed's Avatar
Guessed Guessed is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If the security of the plain text file is a priority then you could provide network restricted read-only access to untrusted. Or move the files into a password-protected zip file.

Windows access rights are pretty easy to set up for any network administrator.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 02-11-2025, 01:50 AM
syl3786 syl3786 is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2019
Advanced Beginner
Best Practices for Storing .bas Files on a Common Drive
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
If the security of the plain text file is a priority then you could provide network restricted read-only access to untrusted. Or move the files into a password-protected zip file.

Windows access rights are pretty easy to set up for any network administrator.
Many thanks for your reply. It is a useful suggestion.

However, I am curious: what if a hacker uses external programs to attack and obtain the password of the .zip file? Passwords can sometimes be quite weak and vulnerable to such attacks.
Reply With Quote
  #4  
Old 02-11-2025, 05:02 AM
Italophile Italophile is offline Best Practices for Storing .bas Files on a Common Drive Windows 11 Best Practices for Storing .bas Files on a Common Drive Office 2021
Expert
 
Join Date: Mar 2022
Posts: 555
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

If you are concerned about hackers, store the files offline on a USB drive locked in a safe. Then you only need worry about safe crackers.

There is no such thing as 'safe', only managed risk.
Reply With Quote
  #5  
Old 02-14-2025, 07:39 AM
syl3786 syl3786 is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2019
Advanced Beginner
Best Practices for Storing .bas Files on a Common Drive
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
If you are concerned about hackers, store the files offline on a USB drive locked in a safe. Then you only need worry about safe crackers.

There is no such thing as 'safe', only managed risk.
Totally agree—offline storage in a safe is a great way to reduce digital risks. And you're right, it's all about managing risk, not eliminating it entirely.
Reply With Quote
  #6  
Old 02-11-2025, 06:51 PM
Guessed's Avatar
Guessed Guessed is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Also, note that someone hacking the .bas file is not in itself a risk since the macro won't run there. However, if you subsequently take those .bas files without reviewing for un-authorised changes and drop them into a template/document then the risk could be realised.

I would be more worried about someone hacking the code which is also in the MS Office file that the .bas file came from. This is a much more direct risk.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #7  
Old 02-14-2025, 07:44 AM
syl3786 syl3786 is offline Best Practices for Storing .bas Files on a Common Drive Windows 10 Best Practices for Storing .bas Files on a Common Drive Office 2019
Advanced Beginner
Best Practices for Storing .bas Files on a Common Drive
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Also, note that someone hacking the .bas file is not in itself a risk since the macro won't run there. However, if you subsequently take those .bas files without reviewing for un-authorised changes and drop them into a template/document then the risk could be realised.

I would be more worried about someone hacking the code which is also in the MS Office file that the .bas file came from. This is a much more direct risk.
In my company, we've had Word macros stored in .bas files on a shared drive for decades. That's why I'm a bit concerned—it's 2025 now, and anyone can create macros or use other programming tools without much restriction. Plus, my colleagues often tweak the code to suit temporary needs. The macros are pretty lengthy, and we just don’t have the time to review and check each one individually.

And you're absolutely right—someone hacking the code in the actual MS Office file (where the .bas file came from) is a much more direct risk. That’s something I really need to keep an eye on.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging pst files and moving to NAS drive riteoh Outlook 0 10-02-2012 05:20 AM
Hyperlinking files on a mapped network drive howler2345 Outlook 0 12-21-2011 08:54 AM
Best Practices for Storing .bas Files on a Common Drive Need help with sorting a column by most common to least common mikenmike0001 Excel 5 12-06-2011 05:17 PM
Best Practices for Storing .bas Files on a Common Drive Access pst files on external hard drive LOUDONCLEAR Outlook 1 09-22-2011 06:13 PM
Mail Merge and Files on Network Drive Joe Switch Mail Merge 0 09-15-2011 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft