-
WSCecil
AskWoody LoungerWhat I am trying to do is reuse code. I have written an add in. The add in includes several class modules. I want to use the code I have already written, rather than rewritting. I also want inheritance and overloading, but I already know Excel does not offer that with version 2002
I create a new workbook. I add a module to the new workbook. I add a reference to my add in, SomeAddin via the “Tools, References” I go to the Object Browser and view the objects available to me, which are sheets and modules.
Now I see that I need to set an Instancing property of the Class Module to PublicNotCreatable.. Once I do this, the class in the XLA is exposed to the other workbook.
Therefore I have answered my own question.
Thanks for the help.
-
WSCecil
AskWoody LoungerWhat I am trying to do is reuse code. I have written an add in. The add in includes several class modules. I want to use the code I have already written, rather than rewritting. I also want inheritance and overloading, but I already know Excel does not offer that with version 2002
I create a new workbook. I add a module to the new workbook. I add a reference to my add in, SomeAddin via the “Tools, References” I go to the Object Browser and view the objects available to me, which are sheets and modules.
Now I see that I need to set an Instancing property of the Class Module to PublicNotCreatable.. Once I do this, the class in the XLA is exposed to the other workbook.
Therefore I have answered my own question.
Thanks for the help.
-
WSCecil
AskWoody LoungerYou are correct
I want toDim m_SomeClass as new SomeClass
Sub Tryme()
m_SomeClass.DoIt
End SubWhere SomeClass in in SomeAddin.xla.
-
WSCecil
AskWoody LoungerYou are correct
I want toDim m_SomeClass as new SomeClass
Sub Tryme()
m_SomeClass.DoIt
End SubWhere SomeClass in in SomeAddin.xla.
-
WSCecil
AskWoody LoungerI opened the file, saved as Excel Workbook (eliminating the 95/97 format). I Inserted a new worksheet. I copied the entire contentes of the offending worksheet and used paste special to put the contents onto the new worksheet, formula first, then formating. I then deleted the offending worksheet.
I found the offending worksheet by copying them to a new workbook one at a time, opening in Office XP after each copy, until it failed to open. I believe we only have one user with this issue, but he has many offending workbooks.
Some days I love MS Office, some days I hate M$ Office.
Thanks for your hel
-
WSCecil
AskWoody LoungerI opened the file, saved as Excel Workbook (eliminating the 95/97 format). I Inserted a new worksheet. I copied the entire contentes of the offending worksheet and used paste special to put the contents onto the new worksheet, formula first, then formating. I then deleted the offending worksheet.
I found the offending worksheet by copying them to a new workbook one at a time, opening in Office XP after each copy, until it failed to open. I believe we only have one user with this issue, but he has many offending workbooks.
Some days I love MS Office, some days I hate M$ Office.
Thanks for your hel
-
WSCecil
AskWoody LoungerSorry, forgot to include that detail in my first post. I tried that.
-
WSCecil
AskWoody LoungerSorry, forgot to include that detail in my first post. I tried that.
-
WSCecil
AskWoody LoungerVery interesting.
Jan Karel Pieterse noted that one method works in 2000 but not 97. I just verified on XP. My process must work on both, therefore I was developing in the older version. Glad I am. I saved hours of frustration finding it early.
Thanks again.
-
WSCecil
AskWoody LoungerThanks. The sample you sent does work in Excel 97 as well.
However the following does not
Sub Test()
frmLogin.Show
frmLogin.hide
End SubSub SecondRoutine()
MsgBox “The Login Name is ‘” & frmLogin.UserName & “‘”
End SubI will move forward by creating a class – calling the form from the class. The class will not destroy itself, as long as I program in such a way that it does not go out of scope. When I am done with it, I can then set it to nothing.
Thanks for your help
-
WSCecil
AskWoody LoungerThanks for the reply.
However, I do not want to destroy the form, I simply want to hide it. I want to treat it like a class and give it some properties, and contiue to access the properties. I will destry it when the spreadsheet closes.
-
WSCecil
AskWoody LoungerThere was a typo in my post. Originally simply used frmLogin, but my property never returned a value. I then changed the code to use m_frmLogin.
The bottom line is, the propery is not available. In VB I can hide a form and continue to access it. Apparently in VBA the form is destroyed and not hidden
-
WSCecil
AskWoody LoungerThanks
I tried , but I must have typo’ed something. It works fine now.
-
WSCecil
AskWoody LoungerThis is a form input button, not a toolbar button issue. I assumed it was an IE specific issue, but it is not. I should have posted to “Web Design, Coding and Scripting” Mozilla behaves the same way, which is interesting, since Netscape is based on Mozilla. I have searched webmonkey to no avail. I have the book “Internet Explorer 5 developers guide” and cannot find what I am looking for. I have expiermented with CSS, tag attributes, etc. I even switched to an XL skin in this forum. However the buttons are not XL.
I could use a graphic for an input button, perhaps.
-
WSCecil
AskWoody LoungerEdited by WyllyWylly to add URL code. See the Quick Guide.[/i][/size]
Are you also aware of
http://devedge.netscape.com/toolbox/tools-validation/%5B/url%5D
and
http://devedge.netscape.com/viewsource/2003/mozilla-webdev/?%5B/url%5D
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
*Some settings are managed by your organization
by
rlowe44
3 hours, 16 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
5 hours, 30 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
5 hours, 54 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
14 hours, 55 minutes ago -
AI slop
by
Susan Bradley
14 hours, 5 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
16 hours, 11 minutes ago -
Two blank icons
by
CR2
1 hour, 45 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 1 hour ago -
End of 10
by
Alex5723
1 day, 3 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 hour, 40 minutes ago -
test post
by
gtd12345
1 day, 9 hours ago -
Privacy and the Real ID
by
Susan Bradley
23 hours, 54 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
16 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 14 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 hour, 50 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
5 hours, 24 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 5 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 17 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 7 hours ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 27 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 16 hours ago -
Network Issue
by
Casey H
2 days, 3 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 5 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 7 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 8 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 9 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 56 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.