-
WSAndrewO
AskWoody LoungerGetting rid of hidden text. I didn’t quite understand why you needed a two stage process – one does it fine on my version of 2000 or 2002.
What’s wrong with simply searching for character format = hidden, and doing a ‘replace all’ with the null string?If it is a VBA requirement then
Selection.Find.ClearFormatting
Selection.Find.Font.Hidden = True
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = “”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAllShould do it.
The find-all variant, as a Macro, looks simpler because it is not followed by a filtering method such as execute.replaceSelection.Find.ClearFormatting
With Selection.Find
.Text = “fox”
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Cut -
WSAndrewO
AskWoody Lounger
OK – should be straightforward.
A design question though.
Presumably your ideal solution would automatically detect the right kind of attachment – if so, how? -
WSAndrewO
AskWoody Lounger
I always wondered what SUBTOTAL was supposed to do. -
WSAndrewO
AskWoody LoungerI also found that stability was affected by operating system.
If you’re on Windows XP – great. Millenium Edition is a recipe for these kinds of errors. -
WSAndrewO
AskWoody LoungerGeoff
Use the normal Edit > Find and fill in your search criteria
Tick the check box labelled “Highlight all items found in:”
Click the button that now says “Find all”
Voila
-
WSAndrewO
AskWoody LoungerIt could be coded as a VBA Function
However, if there are only a limited number of possible functions e.g. less than about three – then a simple IF statement will do it.
=IF(A31=”Average”,AVERAGE($B$2:$B$30),IFA31=”Min”,MIN($B$2:$B$30),MAX($B$2:$B$30)))
(I used MAX for the case that A31 wasn’t “Average” or “Min”)
If the above were in B31 it could be copied to B32 and other cells like it. -
WSAndrewO
AskWoody LoungerOctober 22, 2002 at 11:07 pm in reply to: Need Help with automatical copy, paste then sum (Exel 2000) #625898Try the following where j is the offset – (currently 14)
Private Sub Worksheet_Activate()
ActiveSheet.Range(Cells(14, 1), Cells(ActiveSheet.UsedRange.Rows.Count, 3)).ClearContents
i = Worksheets(“Sheet1”).UsedRange.Rows.Count
j = i + 14
Worksheets(“Sheet1”).Range(“A1:B” & Format(i)).Copy _
Destination:=ActiveSheet.Range(“A14:B” & Format(j))
ActiveSheet.Cells(j, 3).Formula = “=SUM(Sheet1!C:C)”
End SubNote that the routine fully cleared the sheet prior to loading – this was a quick method.
I assume you’re trying to preserve the first fourteen rows and am therefore only clearing columns A:C from 14 down to the EXISTING last cellAndrew
-
WSAndrewO
AskWoody LoungerI’m struggling to understand the problem.
So far I think that :
You have a single template.
You use this template to create a Workbook for departments.
This single created workbook represents a single form which is mailed and saved multiple times, but only printed once?I cannot quite understand if the ‘form’ is in the workbook and always the ‘same’ form or not.
Frankly if there is a single form in a specific workbook the easiest way to achieve uniqueness is to simply name the workbook with the formname as in
Form-12345.xls – where 12345 is the form number
Within the sheet a formula such as
=MID(CELL(“filename”),FIND(“.xls]”,CELL(“filename”),1)-1,5)
would then ‘extract’ the 5 characters just prior to the end of the filename (for numbers of other lengths change the 5 to something else.
However, once again, I’m working on a lot of assumptions due to the fact that I don’t yet understand the problem so will not attempt a detailed robust ‘solution’.
If the above is not close, could you clarify what you think of as a form and describe its “life”. e.g. describe what it is, how it is created , how it is mailed and changed, and when the number is ‘set’.Thanx in advance
-
WSAndrewO
AskWoody LoungerLegare
True – the routine I proposed would increment every save – I wasn’t putting too detailed a job into it until I found out more about the problem.
It would be easy enough to only increment on a Saveas (or force one). I also considered that one could use the file NAME as the form counter and increment it via a Saveas as wellI made the assumption that MyFormCounter was the name of the Form number – VBA code didn’t have to do anything with it.
I liked all your questions – the answers will help work through several of the assumptions I made explicitly and implicitly
-
WSAndrewO
AskWoody LoungerOctober 19, 2002 at 6:08 pm in reply to: Need Help with automatical copy, paste then sum (Exel 2000) #625220If I interpret your description properly – try this as an event procedure on the manifest sheet.
It should accomplish the copy each time you enter the sheet.Private Sub Worksheet_Activate()
ActiveSheet.Cells.ClearContents
Worksheets(“Sheet1”).Range(“A:B”).Copy _
Destination:=ActiveSheet.Range(“A:B”)
i = ActiveSheet.UsedRange.Rows.Count
ActiveSheet.Cells(i, 3).Formula = “=SUM(Sheet1!C:C)”
End Sub -
WSAndrewO
AskWoody LoungerIntriguing question – but rather depends on what you think of as a form and filing.
For the sake of a reply I assume the form equates to a master workbook used as a template.
I also assume that once you ‘save’ the workbook this equates to ‘filed’. After such a save
you want the next workbook created from the workbooke to be based on the template +1 number?Should be easy with a BeforeSave Routine
The Counter could be stored in a protected cell, or in a Document Property of the original template.I’ll assume it is in a cell with name “MyFormCounter”
The following event Macro should do the trick
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Selection.Locked = False
Range(“MyFormCounter”).Value = Range(“MyFormCounter”).Value + 1
Selection.Locked = True
End Sub -
WSAndrewO
AskWoody LoungerWendy
Your used “File > New > Post in this folder”
This feature is designed for use with ‘Public Folders’ which are Microsoft Exchange equivalents of bulletin boards. -
WSAndrewO
AskWoody LoungerSorry – all my searches turned up a blank too.
I assume that you’ve trolled through its properties and stuff like that? Can it be treated like mail – e.g. encapsulated and forwarded – I’d be intrigued to have a look at the offending item. -
WSAndrewO
AskWoody LoungerArage
The short answer is YES .
The slightly longer one is MAYBE
.
It all rather depends on what needs to be achieved specifically and how strongly structured your data is.
Can you post a (sanitized if necessary) example of what you receive, and what you want it to become. -
WSAndrewO
AskWoody LoungerJust being cautious – generally when I get mail items that I don’t remember creating I suspect one of two possibilities
1) I’m having a ‘senior’ moment
2) Virus activity
Neither seem to apply in your case
![]() |
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
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
7 hours, 40 minutes ago -
Office apps read-only for family members
by
b
10 hours, 16 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
7 hours, 8 minutes ago -
24H2??
by
CWBillow
21 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
19 hours, 2 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
12 hours, 15 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
7 hours, 5 minutes ago -
two pages side by side land scape
by
marc
2 days, 8 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 10 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 13 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 15 hours ago -
April 2025 updates out
by
Susan Bradley
10 hours, 46 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 9 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
23 hours, 14 minutes ago -
Creating an Index in Word 365
by
CWBillow
2 days, 1 hour ago -
Coming at Word 365 and Table of Contents
by
CWBillow
13 hours, 48 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 5 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 8 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 10 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 8 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 1 hour ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 8 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 13 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
7 hours, 13 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 22 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 6 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 6 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 15 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 23 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
23 hours, 14 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.