Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to share utilities code
Gary James 
      
3 years ago
Richard, is there a way for your members to submit and share utility code modules that we've written, tested, and debugged, that may be useful for your other members?

I have an Access VBA Class module that provides the ability for your project forms to automatically save and restore their size and position on the screen when opened.

To use the class, simply import it into your project, and and add a few lines of code to each forms code module.  Here is the usage information.

Option Compare Database
Option Explicit

'  place this at the top of the Forms code module
Private sl As New SizeAndLocation

'  place this in the Forms Open Event
Private Sub Form_Open(Cancel As Integer)
   Set sl.MyForm = Me.Form
End Sub

'  place this in the Forms Unload Event
Private Sub Form_Unload(Cancel As Integer)
   sl.Save
   Set sl = Nothing
End Sub


The code cane be found on my Microsoft OneDrive account at:
I can provide a download link upon request.

Alex Hedley  @Reply  
           
3 years ago
Use a gist for a single or just a few files.
Use a GitHub repo for more files.

Hopefully using VCS anyway.
Gary James OP  @Reply  
      
3 years ago
Alex, I just setup a new GitHub account.   This is something I've never used before, so I hope everything looks Ok.   Do I now simply post my account web address?
Alex Hedley  @Reply  
           
3 years ago
git Level 1 might be handy too.
Alex Hedley  @Reply  
           
3 years ago
Sure, you can add a link directly to the Repo, or the code file, which ever is easiest.
Glad to see someone else on board with using it, hope you find it helpful and useful :-)
Gary James OP  @Reply  
      
3 years ago
Thanks for all the help.
Gary James OP  @Reply  
      
3 years ago
Here's the repo link:
https://github.com/NfaToys/Access-VBA-Classes.git
Alex Hedley  @Reply  
           
3 years ago
Love the header!
Gary James OP  @Reply  
      
3 years ago
The header was done with a small Visual Basic utility program called VBAN.EXE written and handed out by a friend.   It can generate comment headers in different formats for VB. VBA, C / C++.  I placed it in a new repository on GitHub (I'm beginning to like this version control and program storage aide)   Here's the link.

https://github.com/NfaToys/Utility-Programs.git
Alex Hedley  @Reply  
           
3 years ago
Awesome, you should add that to the releases section.
Gary James OP  @Reply  
      
3 years ago
I'm still new to all this.  How do you take a repo and put it in Releases?
Alex Hedley  @Reply  
           
3 years ago
There should be an option on that link to create a new release, you can then upload the file much like you already have but you can create a version number and release notes etc
Docs
Gary James OP  @Reply  
      
3 years ago
Found it.   Added a release for vban.exe and my size and location class.   Thanks.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 2:38:03 PM. PLT: 1s