I’ve read and re-read all the recent discussions on WOW concerning searches and wildcards but still haven’t seen the solution to my number 1 search problem. Which is, “How can I find that little, star-like character that designates the end of a cell in a table?”
![]() |
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 |
-
Find Table Cells
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Find Table Cells
- This topic has 17 replies, 5 voices, and was last updated 24 years, 3 months ago.
Viewing 0 reply threadsAuthorReplies-
WSGary Frieder
AskWoody Lounger -
ellisbill
Guest -
WSGary Frieder
AskWoody LoungerFebruary 9, 2001 at 7:34 am #1778054Hi again,
I figured that’s what you were after, but just wanted to make sure
)
There’s probably a really elegant way to do this, but I’ve never had the lighbulb go off for that one. Instead I take the easy way out with good old simplistic methods like this:
Selection.MoveRight Unit:=wdCell
Selection.MoveLeft Unit:=wdCharacter(the product of just playing around in the user interface until I find a method that looks like it works)
(of course, don’t run this in the last cell of a table!)
Hope this helps,
Gary -
WSJamesB
AskWoody LoungerFebruary 9, 2001 at 8:11 am #1778056Here’s an adaptation of some MS code, to give you an idea how it is done:
If Selection.Information(wdWithInTable) Then Set myRange = Selection.Range Set oTable = myRange.Tables(1) For Each aCell In oTable.Range.Cells mycell = Selection.Range.End - 1 'You are now at the end marker of the cell(EOC) aCell.Range.InsertAfter "EOC" Next aCell MsgBox "This Macro Is Finished" Else MsgBox "You Are Not In A Table" End If
-
WSGary Frieder
AskWoody Lounger -
WSJamesB
AskWoody Lounger -
WSPhil Rabichow
AskWoody Lounger -
WSGary Frieder
AskWoody LoungerFebruary 14, 2001 at 2:55 pm #1778502Hi Phil,
If you have “Option Explicit” at the top of your module, then it’s going to choke on undeclared variables such as those in James’s code snippet (the variable declarations go at the beginning of the procedure, so they are often going to be missing when bits of procedures are cited).
Your options are to delete or comment out “Option Explicit” (although having it on as a default is advisable), or option two: provide the missing declarations, for example:
Dim myRange As Range
Gary
-
WSPhil Rabichow
AskWoody Lounger -
WSGary Frieder
AskWoody LoungerFebruary 14, 2001 at 4:12 pm #1778528Just had a look back at James’s code so here you go:
Dim myRange As Range
Dim oTable As Table
Dim aCell As Cell
Dim myCell As (I’m not sure of this one, would have try it out to see but am taking the quick route right now – you could try Range. If that gives you an error, just define it as Variant (Dim myCell As Variant).Rather than paste the above in, try typing them in yourself, and watch what happens with the autocomplete suggstions as you type.
-
WSPhil Rabichow
AskWoody Lounger -
WSGary Frieder
AskWoody LoungerFebruary 15, 2001 at 11:58 am #1778600Phil,
Actually it sounds like the macro is working fine.
The original request was how to ensure that the insertion point is at the end of a cell.
James’s sample demonstrated a way to accomplish that, and as a bonus showed how to do this to every cell in the table. The “EOC”s were inserted to demonstrate that they were inserted at the end of the cell for each cell.To ensure that an insertion took place at the end of only one cell (which may be closer to the original request), the code James posted could be adapted to something like:
If Selection.Information(wdWithInTable) Then
Selection.Cells(1).Range.InsertAfter “EOC”
Else
MsgBox “You Are Not In A Table”
End IfHTH,
Gary -
WSPhil Rabichow
AskWoody LoungerFebruary 16, 2001 at 12:39 am #1778638O.K. Thanks, Gary. I guess I was trying to find something different. I was looking for a way to do a Find/Replace using the end of a cell as an anchor. For example, sometimes you’re trying to find a format such as the last word in a paragraph & you use:
[a-zA-Z]{1,}[.,/?/!]^013It would be nice to construct similar format for end of cell.
-
WSGary Frieder
AskWoody LoungerFebruary 16, 2001 at 6:27 am #1778661Don’t know if this will work in the context of your wildcard search, but the ASCII character number for the end of cell mark is 7.
The end of cell mark apparently contains two characters paired somehow: paragraph mark (13) and EOC (7).
Maybe ^007 will work then?
For more info see MS KB #Q165928 (apols for no link!).
-
WSPhil Rabichow
AskWoody Lounger -
WSgrugeon
AskWoody Lounger -
ellisbill
Guest
-
-
-
-
Viewing 0 reply threads -

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
-
CD/DVD drive is no longer recognized
by
WSCape Sand
5 hours, 31 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
8 hours, 20 minutes ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
6 hours, 26 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
6 hours, 18 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
17 hours, 50 minutes ago -
Location, location, location
by
Susan Bradley
4 hours, 52 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
19 hours, 16 minutes ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
10 hours ago -
June 2025 Office non-Security Updates
by
PKCano
1 day, 6 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
2 hours, 26 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
1 day, 5 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
1 day, 16 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
19 hours, 4 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
2 days, 1 hour ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
2 days, 1 hour ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
1 day, 14 hours ago -
Firefox 139
by
Charlie
1 day, 7 hours ago -
Who knows what?
by
Will Fastie
9 hours, 44 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
2 days, 1 hour ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
4 hours, 39 minutes ago -
Misbehaving devices
by
Susan Bradley
21 hours, 31 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 days, 7 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
6 hours, 36 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days, 6 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
2 days, 5 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 days, 20 hours ago -
Rufus is available from the MSFT Store
by
PL1
3 days, 4 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
4 days, 7 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
2 days, 7 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
2 days, 6 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.