-
WSrrdavis
AskWoody LoungerMark–
Thanks for the work you’ve done on this. Your Access db worked like a charm. I appreciate your help.
-
WSrrdavis
AskWoody LoungerMark–
Thanks for the work you’ve done on this. Your Access db worked like a charm. I appreciate your help.
-
WSrrdavis
AskWoody LoungerHey Mark–
Thanks for the reply. I think this is exactly the kind of tool I’m looking for. However, I’m just a little over my head, here. I probably understand about 80% of the code you included. But that’s how you learn, right? Jump in a little over your and try to figure it out.
I started out by taking the code and dumping in into the Excel VBA editor. I think I’m missing one or more references. Can you pass along which references should be checked.
Also, when I try to compile the code, the first error states “Cannot define a public user-defined type within an object module” at the Type WIN32_FIND_DATA line. This doesn’t sound like a missing reference error. I’ve never created my own types before, so I’m not sure how to correct this error.
If I call the GetTopLevelSubfolderSize procedure within the immediate window, I get an error stating that the procedure or function is not defined. Now that I think about it, this is probably because the code hasn’t compiled, yet.
As I said, this is exactly what I was looking for, but I may need a little hand-holding while I make it work for me. I’m still very much a newbie when it comes to working with the Windows API. Thanks again, Mark, for your contribution.
-
WSrrdavis
AskWoody LoungerHey Mark–
Thanks for the reply. I think this is exactly the kind of tool I’m looking for. However, I’m just a little over my head, here. I probably understand about 80% of the code you included. But that’s how you learn, right? Jump in a little over your and try to figure it out.
I started out by taking the code and dumping in into the Excel VBA editor. I think I’m missing one or more references. Can you pass along which references should be checked.
Also, when I try to compile the code, the first error states “Cannot define a public user-defined type within an object module” at the Type WIN32_FIND_DATA line. This doesn’t sound like a missing reference error. I’ve never created my own types before, so I’m not sure how to correct this error.
If I call the GetTopLevelSubfolderSize procedure within the immediate window, I get an error stating that the procedure or function is not defined. Now that I think about it, this is probably because the code hasn’t compiled, yet.
As I said, this is exactly what I was looking for, but I may need a little hand-holding while I make it work for me. I’m still very much a newbie when it comes to working with the Windows API. Thanks again, Mark, for your contribution.
-
WSrrdavis
AskWoody LoungerJoe–
Thanks for your response. I’ve downloaded the Directory Printer. While it appears to have some powerful features, there is way too much information for what I’m looking for. We have hundreds of home folders and it is giving me information on every subfolder of each home folder. If I start with the parent folder for the home directories and check “Search Sub-Folders”, I get information on every sub-folder for every home directory. If I start with a specific user’s home folder, I could just a easily check the properties for each individual home folder–but that would take more time than I have. I wish it had a setting for “Search sub-folders only one level down”.
Is there any other ways to get at the total folder size for all home directories?
-
WSrrdavis
AskWoody LoungerJoe–
Thanks for your response. I’ve downloaded the Directory Printer. While it appears to have some powerful features, there is way too much information for what I’m looking for. We have hundreds of home folders and it is giving me information on every subfolder of each home folder. If I start with the parent folder for the home directories and check “Search Sub-Folders”, I get information on every sub-folder for every home directory. If I start with a specific user’s home folder, I could just a easily check the properties for each individual home folder–but that would take more time than I have. I wish it had a setting for “Search sub-folders only one level down”.
Is there any other ways to get at the total folder size for all home directories?
-
WSrrdavis
AskWoody LoungerApril 26, 2004 at 12:07 pm in reply to: Cannot disable macros after digital signing (Excel 2002 (xp) SP2) #819800What a great tip. Thanks Jan!
-
WSrrdavis
AskWoody LoungerApril 26, 2004 at 12:07 pm in reply to: Cannot disable macros after digital signing (Excel 2002 (xp) SP2) #819801What a great tip. Thanks Jan!
-
WSrrdavis
AskWoody LoungerApril 23, 2004 at 12:24 pm in reply to: Cannot disable macros after digital signing (Excel 2002 (xp) SP2) #819061Thanks, everyone, for your responses to my question. Digitally signing a project has been tricky to figure out, having not done so to this point. This was just another piece to the puzzle.
I have been double-clicking a shortcut to open the file. Opening it through the Open dialog box while holding down shift worked as designed. I will probably add a simple IF Statement and MsgBox asking if I want to run the macro, which I can comment out once all my testing is done.
Thanks again for everyone’s help.
-
WSrrdavis
AskWoody LoungerApril 23, 2004 at 12:24 pm in reply to: Cannot disable macros after digital signing (Excel 2002 (xp) SP2) #819062Thanks, everyone, for your responses to my question. Digitally signing a project has been tricky to figure out, having not done so to this point. This was just another piece to the puzzle.
I have been double-clicking a shortcut to open the file. Opening it through the Open dialog box while holding down shift worked as designed. I will probably add a simple IF Statement and MsgBox asking if I want to run the macro, which I can comment out once all my testing is done.
Thanks again for everyone’s help.
-
WSrrdavis
AskWoody LoungerApril 6, 2004 at 8:22 pm in reply to: ActivePrinter and ‘Ne01’ designation (Excel 2002 (xp) SP2) #810917John–
Thanks for your response. However, I’m not sure what the code you presented is suppose to do. As far as I can tell, as long as the Printers Dialog can show, my code will fire. I think I’m looking for something more than that.
I’m need to make sure we’re talking about this same thing, first. You referenced Net01, while I’m refering to a printer port designation of Ne00, Ne01, Ne02,… Is this what you meant?
I need to make sure my excel document prints to a specific printer. In the printers dialog box, it is refered to as printername. When I check the Application.ActivePrinter property, it returns printername on Ne0x, where x varies, but is usually 0, 1 or 2. I don’t know how to refer to this printer if the name of the printer changes.
Do you (or anyone else) have other suggestions? Or have I misunderstood the use of your code? I good at doing that!
-
WSrrdavis
AskWoody LoungerApril 6, 2004 at 8:22 pm in reply to: ActivePrinter and ‘Ne01’ designation (Excel 2002 (xp) SP2) #810918John–
Thanks for your response. However, I’m not sure what the code you presented is suppose to do. As far as I can tell, as long as the Printers Dialog can show, my code will fire. I think I’m looking for something more than that.
I’m need to make sure we’re talking about this same thing, first. You referenced Net01, while I’m refering to a printer port designation of Ne00, Ne01, Ne02,… Is this what you meant?
I need to make sure my excel document prints to a specific printer. In the printers dialog box, it is refered to as printername. When I check the Application.ActivePrinter property, it returns printername on Ne0x, where x varies, but is usually 0, 1 or 2. I don’t know how to refer to this printer if the name of the printer changes.
Do you (or anyone else) have other suggestions? Or have I misunderstood the use of your code? I good at doing that!
-
WSrrdavis
AskWoody LoungerI have been using your solution for a number of years, but didn’t know if there was something else I didn’t know–huh, ya know?
I hadn’t thought about using a custom format. This is probably the ticket for me since these numbers will not be used for calcuations. (I’m programmatically importing data into my spreadsheet and need to get the visual formatting correct.)
If I were to need these numbers in some calculations, does anyone else have some suggestions that would keep me from having to manually divide all the numbers in the range by 100? (Although I guess I could do this programmatically, also)
-
WSrrdavis
AskWoody LoungerI have been using your solution for a number of years, but didn’t know if there was something else I didn’t know–huh, ya know?
I hadn’t thought about using a custom format. This is probably the ticket for me since these numbers will not be used for calcuations. (I’m programmatically importing data into my spreadsheet and need to get the visual formatting correct.)
If I were to need these numbers in some calculations, does anyone else have some suggestions that would keep me from having to manually divide all the numbers in the range by 100? (Although I guess I could do this programmatically, also)
-
WSrrdavis
AskWoody LoungerI thought so, but it couldn’t hurt to ask. Thanks again.
![]() |
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
-
Marriage Counseling – Manages To Do It Save Our Marriage? (Awaiting moderation)
by
lynwoodspellman
5 hours, 8 minutes ago -
Where’s the cache today?
by
Up2you2
5 hours, 1 minute ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
12 hours, 7 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
12 hours, 28 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
5 hours, 42 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
22 hours, 15 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
22 hours, 22 minutes ago -
regarding april update and may update
by
heybengbeng
23 hours, 51 minutes ago -
MS Passkey
by
pmruzicka
1 hour, 47 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 7 hours ago -
*Some settings are managed by your organization
by
rlowe44
18 hours, 15 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 6 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 2 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
AI slop
by
Susan Bradley
5 hours, 3 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
2 days, 12 hours ago -
Two blank icons
by
CR2
1 day ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 21 hours ago -
End of 10
by
Alex5723
2 days, 23 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 21 hours ago -
test post
by
gtd12345
3 days, 6 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 20 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
22 hours, 28 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 10 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 22 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
2 days, 1 hour ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
4 days, 2 hours ago -
The story of Windows Longhorn
by
Cybertooth
3 days, 13 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
4 days, 3 hours ago -
Are manuals extinct?
by
Susan Bradley
1 day, 4 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.