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
-
Office gets current release
by
Susan Bradley
16 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
11 hours, 18 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
8 hours, 2 minutes ago -
Stop the OneDrive defaults
by
CWBillow
12 hours, 7 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
22 hours, 2 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
1 day ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 1 hour ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 1 hour ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
13 hours, 56 minutes ago -
Enabling Secureboot
by
ITguy
20 hours, 56 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 9 hours ago -
No more rounded corners??
by
CWBillow
1 day, 5 hours ago -
Android 15 and IPV6
by
Win7and10
19 hours, 14 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 22 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 19 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 8 hours ago -
May preview updates
by
Susan Bradley
1 day, 19 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 11 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 21 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
23 hours, 30 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 23 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
48 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 11 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 10 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 1 hour ago -
Another test post
by
gtd12345
4 days, 1 hour ago -
Connect to someone else computer
by
wadeer
2 hours, 38 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.