-
WSjstevens
AskWoody LoungerI have an interesting delimma; when I right click on it I receive the following error message.
Is there a fix to the registery that can be made?
Thanks,
John -
WSjstevens
AskWoody LoungerYes, It is Excel 2003.
Regards,
John -
WSjstevens
AskWoody LoungerI found something online:
Code:Public Function EOMonth(InputDate As Date, Optional MonthsToAdd As Integer) ' Returns the date of the last day of month, a specified number of months ' following a given date. Dim TotalMonths As Integer Dim NewMonth As Integer Dim NewYear As Integer If IsMissing(MonthsToAdd) Then MonthsToAdd = 0 End If TotalMonths = Month(InputDate) + MonthsToAdd NewMonth = TotalMonths - (12 * Int(TotalMonths / 12)) NewYear = Year(InputDate) + Int(TotalMonths / 12) If NewMonth = 0 Then NewMonth = 12 NewYear = NewYear - 1 End If Select Case NewMonth Case 1, 3, 5, 7, 8, 10, 12 EOMonth = DateSerial(NewYear, NewMonth, 31) Case 4, 6, 9, 11 EOMonth = DateSerial(NewYear, NewMonth, 30) Case 2 If Int(NewYear / 4) = NewYear / 4 Then EOMonth = DateSerial(NewYear, NewMonth, 29) Else EOMonth = DateSerial(NewYear, NewMonth, 28) End If End Select End Function
-
WSjstevens
AskWoody LoungerCourtney,
Thanks for your response. Your suggestion only addresses the backup process of the Time Capsule; pointing to another drive and creating sparsebundles.
If you recall, TC can also be used to store data, music and etc.. With this in mind I am looking for a means of creating an entire drive image of the Time Capsule.
Regards,
John -
WSjstevens
AskWoody LoungerThanks for your suggestion..it worked.
Regards,
John -
WSjstevens
AskWoody LoungerTry this (I’ve highlighted the separate SUBSTITUTE functions:
=SUBSTITUTE(SUBSTITUTE(A1,”SwapText_01″,””),”SwapText_02″,””)
Works perfectly.
Thank you,
John -
WSjstevens
AskWoody LoungerHans,
Thanks for the suggestion.
John
-
WSjstevens
AskWoody LoungerHans,
I tried your suggestion and it returned a “#Value”; referencing another file. I then tried it within the same workbook; different sheet and received the #Value as well.
Regards,
John -
WSjstevens
AskWoody LoungerYou probably haven’t followed Steve’s instructions entirely correctly. See the attached version.
Sorry, my error as I did not leave F1 blank as instructed by Steve. All is well.
Thanks Steve and Hans,
John -
WSjstevens
AskWoody LoungerSet your criteria to only F1:F2
F1 should be blank (since F2 will have a formula)
F2 should have:
=NOT(ISBLANK(B2))Steve
Hi Steve,
I tried your suggestion without success. The end result of your suggestion lists all the items and does not pare down the information to what I have highlighted in green.
Regards,
John -
WSjstevens
AskWoody LoungerI tried it on my PC, and it worked fine with spaces in the file name.
Are some of the files read-only, perhaps?Great observation! Now I’m embarrassed.
I removed the read-only and it worked.
Thanks again.
John -
WSjstevens
AskWoody LoungerTry specifying the full path:
Kill “C:MyFolderMySubfolderCopy of*.xls”
Han,
I should have been more clear as to what I’m trying to achieve.oPath = “C:MyFolderMySubfolder”
oEraseFiles = “Copy of*.xls”Kill oPath & oEraseFiles
The error message I receive is “Path/File” access error. I believe this to be related to the space.
Regards,
John -
WSjstevens
AskWoody LoungerI’m sorry, I can’t explain that. What happens if you single-step through the code?
Stepping through the code provides enough time for the file attribute to change. All other lines of code run as expected.
Seem to be a timing difference in seconds.
Regards,
John -
WSjstevens
AskWoody LoungerHans,
It’s still happening.
My code example is:
[codebox]’File Attributes
FileAttribute = GetAttr(sPathOfSourceFile & strFileName) And vbHiddenIf FileAttribute = 2 Then
SetAttr (sPathOfSourceFile & strFileName), vbNormal
Do While GetAttr(sPathOfSourceFile & strFileName) 0
DoEvents
Loop
End If
[/codebox]Regards,
John -
WSjstevens
AskWoody LoungerA non macro method (I’m using 2003 – Due to limitations of the Find routine, this method will not work in earlier versions):
Select the range you want to affect
Ctrl F to launch Find dialog
enter the data to find, check the match entire cell option
Click Find All
Highlight the results that appear
Click Close
Ctrl+”-” (launches delete dialog) choose Entire Row
OK outYou go me to think this out a little more. If one could pass the cell addresses to an array and then delete the each row of the array that may work.
If you select a number of cells by using the Ctrl Key and left click; one can delete all rows at the same time.
Thanks for taking another look,
John
![]() |
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
-
Finding Microsoft Office 2021 product key
by
Kathy Stevens
1 hour, 7 minutes ago -
Over-the-Top solves it!
by
RetiredGeek
10 hours, 22 minutes ago -
To Susan – Woody Leonhard, the “Lionhearted”
by
Myst
17 hours, 23 minutes ago -
Extracting Data From All Sheets
by
WSJon5
18 hours, 59 minutes ago -
Use wushowhide in Windows 11 24H2?
by
Tex265
9 minutes ago -
Hacktool:Win32/Winring0
by
Marvel Wars
5 hours, 48 minutes ago -
Microsoft Defender as Primary Security Question
by
blueboy714
32 minutes ago -
USB printers might print random text with the January 2025 preview update
by
Alex5723
10 minutes ago -
Google’s 10-year-old Chromecast is busted, but a fix is coming
by
Alex5723
1 day, 7 hours ago -
Expand the taskbar?
by
CWBillow
1 day, 7 hours ago -
Gregory Forrest “Woody” Leonhard (1951-2025)
by
Susan Bradley
1 hour, 6 minutes ago -
March 2025 updates are out
by
Susan Bradley
8 hours, 16 minutes ago -
Windows 11 Insider Preview build 26120.3380 released to DEV and BETA
by
joep517
2 days ago -
Update Firefox to prevent add-ons issues from root certificate expiration
by
Alex5723
2 days, 7 hours ago -
Latest Firefox requires Password on start up
by
Gordski
2 days, 2 hours ago -
Resolved : AutoCAD 2022 might not open after updating to 24H2
by
Alex5723
2 days, 20 hours ago -
Missing api-ms-win-core-libraryloader-11-2-1.dll
by
IreneLinda
1 day, 19 hours ago -
How Much Daylight have YOU Saved?
by
Nibbled To Death By Ducks
1 day, 22 hours ago -
A brief history of Windows Settings
by
Simon Bisson
1 day, 16 hours ago -
Thunderbolt is not just for monitors
by
Ben Myers
1 day, 14 hours ago -
Password Generators — Your first line of defense
by
Deanna McElveen
1 day, 20 hours ago -
AskWoody at the computer museum
by
Will Fastie
20 hours, 3 minutes ago -
Planning for the unexpected
by
Susan Bradley
1 day, 21 hours ago -
Which printer type is the better one to buy?
by
Bob99
2 days, 22 hours ago -
Upgrading the web server
by
Susan Bradley
2 days, 20 hours ago -
New Windows 11 24H2 Setup – Initial Win Update prevention settings?
by
Tex265
3 days, 16 hours ago -
Creating a Google account
by
DavidofIN
3 days, 14 hours ago -
Undocumented “backdoor” found in Bluetooth chip used by a billion devices
by
Alex5723
3 days, 21 hours ago -
Microsoft Considering AI Models to Replace OpenAI’s in Copilot
by
Alex5723
4 days, 8 hours ago -
AI *emergent misalignment*
by
Alex5723
4 days, 9 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.