-
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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
My Simple Word 2010 Macro Is Not Working (Awaiting moderation)
by
mbennett555
7 hours, 29 minutes ago -
Office gets current release
by
Susan Bradley
12 hours, 12 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 4 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
13 hours, 16 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 5 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 15 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 17 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 17 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 18 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 19 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 7 hours ago -
Enabling Secureboot
by
ITguy
1 day, 14 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 3 hours ago -
No more rounded corners??
by
CWBillow
1 day, 22 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 12 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 15 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 18 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 12 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 1 hour ago -
May preview updates
by
Susan Bradley
2 days, 12 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 4 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 17 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 14 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 16 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 17 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
14 hours, 45 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 5 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
2 days, 3 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 18 hours ago -
Another test post
by
gtd12345
4 days, 18 hours 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.