-
WSriduwanz
AskWoody LoungerThanks Han,
I did that, but placing break after Copy Picture. The chart (graphic) is in the clipboard and pastable anywhere.
Regards
Ridz -
WSriduwanz
AskWoody LoungerThanks Hans,
It indeed solves the problems. However, do you know why I was not given the chance to select different worksheet within the workbook? OLE option allows that.
Regards
Rid -
WSriduwanz
AskWoody LoungerThank you.
Did you mean IncludeText field code? I am not able to find InsertFile with Word Help.
Regards
Rid -
WSriduwanz
AskWoody LoungerThank you everyone and sorry for replying late.
The good news is I have managed to convince the boss to use PDF instead. I used plug-in to Acrobat to convert the old colours to the new ones.
Again thank you.
Regards
Rid -
WSriduwanz
AskWoody LoungerHans,
In this case, the documents do not ‘deserve’ 100% treatment anymore, as they will become obsolete by the end of this year. But the boss still wants to do the extra steps and wants the colours in the documents to be changed. In other words, I want easy way out, if it is at all possible.
I don’t mind using Table Auto Format if the tables have patterns. But the cells are merged here and there; one cell of a row is shaded; whilst other similar tables are not. To put it crudely, I don’t know what the creators were doing.
Regards
Rid -
WSriduwanz
AskWoody LoungerThanks Hans,
You read my ‘nightmare’ well. Yes, if the users could use different formats on text (even after styles are created for them), you could imagine how messy the tables produced. I am trying to avoid re-creating the tables, if I could simply “search and replace” the colours and shadings.
Regards,
Rid -
WSriduwanz
AskWoody LoungerThank you.
It works for text, but how about cell border and Shading; text box fill colour?
Regards
Rid -
WSriduwanz
AskWoody LoungerThanks Hans,
You are a life-saver.
I was short of manually typing out the TOC.
Regards
Rid -
WSriduwanz
AskWoody LoungerThank you so much.
-
WSriduwanz
AskWoody LoungerHans,
Thank you so much. Everything is so far so good after I changed all the .Width to .PreferredWidth (including on the main document that I am working on). What is the difference between two or rather, when should one be used instead of the other?
Regards
Rid -
WSriduwanz
AskWoody LoungerThanks Hans,
I tried after closing another document that has similar code, and it works (BUT…see below). I am still trying to figure out the cause why I cannot use the same codes on my actual document.
Now, the interesting part, can you see at your side that the width of columns in table 1 is different from table 2 (or table 3)? Do you know why?
Regards
Rid -
WSriduwanz
AskWoody LoungerThanks Andrew,
I tried your suggestion, but unfortunately, it does not seem to solve the issue.
Now, the codes generate the same error at the first line that resize the column width (instead of 3rd line), no matter how wide I set the width to (ie. no chance to get to Column 3 and resize the width).
…
With Selection.Tables(1)
.Columns(1).Width = CentimetersToPoints(7.5) ‘ Error here
.Columns(2).Width = CentimetersToPoints(1.7)
.Columns(3).Width = 15
.Columns(4).Width = CentimetersToPoints(1)
End With
….Regards
Rid -
WSriduwanz
AskWoody LoungerAttached is the document that contains a few tables.
Thank you in advance for your help.
Regards
Rid -
WSriduwanz
AskWoody LoungerMyTableStyle (a very misleading variable name, I am going to change it), is used to set the paragraph styles of the text in the table.
The paddings of the tables ware not effected by applying the style. To be very sure I have moved the codes above the codes I posted in my second Posting. Yet, the error still occur.
Thanks you.
Rid
-
WSriduwanz
AskWoody LoungerThanks Andy.
I am not sure if that is the case because I did set the left and right padding to 0 and 0.1 cm respectively before I set the column width.
I reset the paddings with the code (included in my first posting):
With Selection.Tables(1)
.PreferredWidthType = wdPreferredWidthPoints
.Rows.LeftIndent = CentimetersToPoints(0.4)
.PreferredWidth = CentimetersToPoints(10.5)
.TopPadding = CentimetersToPoints(0)
.BottomPadding = CentimetersToPoints(0)
.LeftPadding = CentimetersToPoints(0)
.RightPadding = CentimetersToPoints(0.1)
.Spacing = 0
.AllowPageBreaks = True
.AllowAutoFit = False
End WithRegards
Rid
![]() |
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
-
Apple releases 18.5
by
Susan Bradley
16 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 hour, 22 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
8 hours, 56 minutes ago -
No HP software folders
by
fpefpe
9 hours, 41 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 54 minutes ago -
Stay connected anywhere
by
Peter Deegan
15 hours, 4 minutes ago -
Copilot, under the table
by
Will Fastie
6 hours, 17 minutes ago -
The Windows experience
by
Will Fastie
21 hours, 18 minutes ago -
A tale of two operating systems
by
Susan Bradley
12 hours, 14 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 2 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 17 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
11 hours, 4 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 18 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 11 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 11 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 12 hours ago -
MS Passkey
by
pmruzicka
1 day, 14 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 20 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 7 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 19 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days ago -
AI slop
by
Susan Bradley
1 day, 18 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 1 hour ago -
Two blank icons
by
CR2
1 day, 9 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 11 hours ago -
End of 10
by
Alex5723
4 days, 12 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 10 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.