-
WSAntediluvian
AskWoody LoungerI’ve just noticed that when using the Folder measurement option with a very large folder I get the error response “Run-time error ‘6’: Overflow”. Would it be possible to remedy this or to provide an appropriate error message?
-
WSAntediluvian
AskWoody LoungerMy thanks to all of you; I’m really bowled over with your excellent level of assistance. I intend to try to create an amalgam of the two concepts, combining the speed and simplicity of one with the generality of the other.
-
WSAntediluvian
AskWoody LoungerMy thanks to both of you
-
WSAntediluvian
AskWoody LoungerAndrew,
Thank you for your help. I should have explained that I distribute my code among a number of users and cannot rely on their settings. Without changing my environment as you suggest your code I found would not work but the code below that I found in VBA Help did work. However it only leaves a message for folders and does not return a result. This was what I was attempting to change but my VBA skills are insufficient for the task. To my untutored way of thinking, if the value can be obtained to leave in a message, it should be available to return as a result, and for both folders and files. If you have the time, I’d be very grateful for your insights
Regards
Syntax
object.Size
The object is always a File or Folder object.
Remarks
The following code illustrates the use of the Size property with a Folder object:Sub ShowFolderSize(filespec)
Dim fs, f, s
Set fs = CreateObject(“Scripting.FileSystemObject”)
Set f = fs.GetFolder(filespec)
s = UCase(f.Name) & ” uses ” & f.size & ” bytes.”
MsgBox s, 0, “Folder Size Info”
End Sub -
WSAntediluvian
AskWoody LoungerSteve,
Absolutely perfect. Many thanks.
Geoffrey
-
WSAntediluvian
AskWoody LoungerSteve,
Thank you, I very much appreciate your advice, especially the Very Hidden part. It works well for Sheet1 but it’s case sensitive and as far as I can tell does not handle [book]sheet requirements. I’m a bit worried it won’t handle checking the status of sheets in workbooks other than the one from which I’m working. I’ve checked that if the macro language code selects the other workbook it then seems to work, but it would be more elegant to solve it in VBA as the macro language has so many limitations.
-
WSAntediluvian
AskWoody LoungerAgain, thanks to both of you. It’s increased productivity in this area by a factor of sixty or more, and if I take the whole application, it’s whole increases in accuracy and productvity. That’s a great step forward!
I did change the “>256” to “>255” as I found it got stuck on 256 exactly. These underlying bugs are certainly tenacious!
-
WSAntediluvian
AskWoody LoungerMy sincere thanks to both of you. I haven’t yet had time to check the suggested change but will do. The code works like a charm with ONE exception. It does not work for cells with 256 characters or more. I’m using Excel 2003. I know that there are some limitations at this number and it may be that it cannot be solved in this version of Excel. Even if that is the case, it’s a huge step forward for me, as I can go through and manually alter if necessary.
(My application seeks to identify names in text and to check for validity against a database. Most names are in bold. I do some manual adjustments (eg non bold to bold and vice versa) and the rest is code. The bit you’ve helped with so kindly is the one part I could not do myself.)
-
WSAntediluvian
AskWoody LoungerRory,
Thank you. Unfortunately my knowledge of VB is very limited and I’d appreciate more assistance if possible. I’m hoping to convert all non-bold characters to spaces in situ (ie convert a selection of cells so that all non bold characters are spaces). If you have the time to show me a bit more I’d be very grateful.
Geoffrey
-
WSAntediluvian
AskWoody LoungerThank you Hans. I’d not understood this subtlety. Thank you also for showing me there is no built-in function to calculate such a result.
-
WSAntediluvian
AskWoody LoungerThanks to both of you. I think I’ll probably try to code up a primitive equivalent based on a one row Criteria Table with simple conditions (probably equal) only allowed.
regards
Geoffrey Howell
-
WSAntediluvian
AskWoody LoungerJanuary 28, 2007 at 10:23 am in reply to: FollowHyperlink uses Win Explorer in Error (XP Excel 2003) #1048787Hans,
Thank you so much. I’ve updated my Visual Basic functions into my ZMacros suite and modified the XLM Macros slightly. In the applications above that it’s just adding in the “A” onto the “Open”. It all works fine now thanks to you. Your work is truly excellent, and I appreciate it very much.
regards
Geoffrey
-
WSAntediluvian
AskWoody LoungerJanuary 28, 2007 at 5:41 am in reply to: FollowHyperlink uses Win Explorer in Error (XP Excel 2003) #1048774Hans,
Thank you very much. It works and that’s so encouraging. But I need to put this into a function and I’ve written the following code in place of your macro (leaving your lines prior to your macro in place).
Function ZFileOpenA( _
MyFile As String, _
MyDir As String)
Dim lngResult As Long
Dim strTarget As String
strTarget = ZFileJoinPath(MyFile, MyDir)
lngResult = ShellExecute(0&, “Open”, _
strTarget, 0&, 0&, SW_SHOWMAXIMIZED)
If lngResult <= 32 Then
ZFileOpenA = "Undefined Error"
Exit Function
End If
ZFileOpenA = True
End FunctionUnfortunately it bombs out on the Function line and I am really out of my depth. (Previously and with your help I've now got functions that Open, Copy, Move and Delete any file and I can access these functions in XLM Macro 4). If I can get this section working then I should have a reliable suite of functions. I'm sure I've done something wrong that's very obvious. Any help would be appreciated.
regards
Geoffrey
-
WSAntediluvian
AskWoody LoungerHans, Perfect! Thank you very much.
Geoffrey
-
WSAntediluvian
AskWoody LoungerHans, Thank you. I’ve tried the following line:
ActiveSheet.FollowHyperlink Address:= “http://www.google.com.au/”, NewWindow:= True
and I can use error control to determine if it works or not. But I can’t get that line to work, though it works if I open a file within my computer. I assume I’m doing something wrong. Do you have any thoughts?
regards
Geoffrey
![]() |
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
-
Stop the OneDrive defaults
by
CWBillow
5 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 hours, 31 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
4 hours, 43 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
5 hours, 1 minute ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
5 hours, 38 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
6 hours, 15 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 hour, 33 minutes ago -
Enabling Secureboot
by
ITguy
1 hour, 25 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
14 hours, 9 minutes ago -
No more rounded corners??
by
CWBillow
9 hours, 58 minutes ago -
Android 15 and IPV6
by
Win7and10
1 hour, 50 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 2 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 5 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
23 hours, 47 minutes ago -
Windows Update orchestration platform to update all software
by
Alex5723
1 day, 12 hours ago -
May preview updates
by
Susan Bradley
23 hours, 55 minutes ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
15 hours, 30 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 4 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 1 hour ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
3 hours, 58 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 4 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
45 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
2 days, 16 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
14 hours, 41 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 5 hours ago -
Another test post
by
gtd12345
3 days, 5 hours ago -
Connect to someone else computer
by
wadeer
3 days ago -
Limit on User names?
by
CWBillow
3 days, 3 hours ago -
Choose the right apps for traveling
by
Peter Deegan
2 days, 17 hours ago -
BitLocker rears its head
by
Susan Bradley
2 days, 1 hour 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.