Rufus Clupea
Board Regular
- Joined
- Feb 11, 2019
- Messages
- 85
I'm working on a fairly large (for me) project, using one (main) UserForm with a MultiPage. I was working under the mistaken belief that,
When I saw that qualifier, I copied my code into Word for a quick character count—it was something over 75,000 characters, and I knew I was only about 1/3 to 1/2 way along, so I split things into several modules, believing—as the book said—it would be "simple". That's where....
So I'm now engaged in probably one of many major re-writes (which is fine—I expected this ) Good time, methinks, to ask a few questions that have been collecting...
https://www.youtube.com/watch?v=BxacATCHrpo
So most everything went into the UserForm Module. Things were going pretty well until I noticed the "fine print","A single VBA module can store any number of Sub procedures, Function procedures, and Declarations."
—Excel VBA Programming for Dummies
Ummm... right."Well, there is a limit—about 64,000 characters per module....the solution is simple: Just insert a new module."
—Ibid.
When I saw that qualifier, I copied my code into Word for a quick character count—it was something over 75,000 characters, and I knew I was only about 1/3 to 1/2 way along, so I split things into several modules, believing—as the book said—it would be "simple". That's where....
So I'm now engaged in probably one of many major re-writes (which is fine—I expected this ) Good time, methinks, to ask a few questions that have been collecting...
- Is there any way of (globally?) telling modules that they're all part of the same project, and avoiding having to re-code everything with a "UserForm1." prefix (I'm using WITH-END WITH, but there's a LOT of stuff to account for)?
- Is there a way to tab (key) directly from the last TabStop on one page of the MultiPage to the first TabStop on the next page without manually clicking on the MultiPage tab and the first TabStop on each subsequent page?
- CheckBoxes have Captions; OptionButtons have Captions. Is there an easy way to combine a SpinButton with a Label (thereby giving it a "Caption"), or must I create a whole new object? (Not sure exactly how to do that yet, but willing to learn!)
https://www.youtube.com/watch?v=BxacATCHrpo