-
WSPaul Lautman
AskWoody LoungerFebruary 7, 2007 at 1:22 pm in reply to: Calling all cells (well addressing really) (2002 SP3) #1050395But did you see Rory’s one, no selecting, no looping!
-
WSPaul Lautman
AskWoody LoungerFebruary 7, 2007 at 1:09 pm in reply to: Calling all cells (well addressing really) (2002 SP3) #1050391You were just soooo close!
it needs to be this:
With Selection.Tables(1) .AutoFitBehavior wdAutoFitContent .AllowAutoFit = True End With
otherwise all it does is work on the first table in the document instead of the current one.
-
WSPaul Lautman
AskWoody LoungerFebruary 7, 2007 at 12:41 pm in reply to: Calling all cells (well addressing really) (2002 SP3) #1050387Well sorta. My post did actually say “short of selecting the whole table” as normally in VBA you can achieve most things without selecting.
This is quite similar to what I had, except I also had a bit to restore the original selection, and and you missed the preferred width setting for the table itself thus:
Sub AutoFitTable() Set orig = Selection.Range With Selection.Tables(1) .AllowAutoFit = False .PreferredWidthType = wdPreferredWidthAuto .Select Selection.Cells.PreferredWidthType = wdPreferredWidthAuto Selection.Columns.PreferredWidthType = wdPreferredWidthAuto End With orig.Select End Sub
-
WSPaul Lautman
AskWoody LoungerI’ve never really played around with table styles. I’ll take a look, thanks.
However, very slow is relative. The macro does 10 tables in about a second which is quick enough for me.
-
WSPaul Lautman
AskWoody LoungerYeah I got that,
but this is the same table. All the other properties seemed to get passed OK, but that one did not. -
WSPaul Lautman
AskWoody LoungerThanks Hans,
I still wonder why it was only that one property that was missing when it was failing. -
WSPaul Lautman
AskWoody LoungerWow, it’s as easy as that!
I’ve been on this for an hour.
Would would all of us loungers do without HansV?
Thanks you sdo much once again Hans.
-
WSPaul Lautman
AskWoody LoungerNovember 10, 2006 at 10:26 am in reply to: Copying Excel data only to Word table (XP 2002 SP3) #1038074I had already tried that (well it was actually a 5 row table that I pasted below). The table and cell widths seemed to be correct, but the formatting was still as it had come from Excel (not too much of a problem), but the real problem with that method was that the table columns were offset from the original ones and I can’t sem to line ’em up again.
Attached is a picture of what I ended up with.
-
WSPaul Lautman
AskWoody LoungerThanks for that.
I can’t seem to see any difference when I change the scale factors. I tried changing them from 800, 600 to 8, 6 and the output file still appeard to be exactly the same.
What difference should I expect to see?
-
WSPaul Lautman
AskWoody LoungerThanks for all the replies guys.
In this application the cells that I am interested in have a formula that return text or “”. Sad @#$!% that I am, I figured out whilst trying to get to sleep last night that =COUNTA(A:A,”?*”) should get me what I need for this. However I shall store Jezza’s and Aladin’s ideas away for future use.
Thanks once again.
-
WSPaul Lautman
AskWoody Lounger[indent]
=sum(if(A$1:A$35 “”,1)
[/indent] That is equivalent to =SUMPRODUCT((A1:A35″”)*1) since SUMPRODUCT is an implicit array function.
[indent]
=counta(A$1:A$35)
[/indent] won’t work because the cells are equal to “” (from an if statement) rather than blank.
-
WSPaul Lautman
AskWoody LoungerWow, thanks for that Hans.
-
WSPaul Lautman
AskWoody Lounger[indent]
those in Chart3 can only be used to predict the height of a person from his or her shoe size, NOT to predict someone’s shoe size from his/her height
[/indent]
But that is where I have the problem. If I predict that for a particular shoe size, someone will be of a particular height, I would feel that I have defined a relationship between the 2 values.
Suppose I predict that someone with a shoe size of 7.35 should be of height 164. So I find a person with a shoe size of 7.35, find that their height is 164 and then say, “because your height is 164, I predict that your shoe size is 6.15”.
It just doesn’t work????
-
WSPaul Lautman
AskWoody LoungerThe thing that gets me here is that, whilst they all agree at the mean values, if I look at Chart3 it tells me that for a female of height 164 I should expect to see a shoe size of 7.35, however, looking at the same data on Chart1 it would predict a shoe size of about 6.15.
-
WSPaul Lautman
AskWoody LoungerAhhhh, thanks for that Hans.
I had asumed that the trend line was the “line of best fit” for the points on the scatter graph.
Is it possible to display such a beast, which would then be independent of the orientation of the graph axes?
TIA
Regards
Paul
![]() |
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 |

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
-
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
1 minute ago -
How can I update “Explorer Patcher”
by
WSplanckster
6 minutes ago -
Check out the home page for Signal
by
CAS
1 hour, 9 minutes ago -
Windows 11 and Trial version of MS Office
by
Tex265
1 hour, 19 minutes ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
4 hours, 30 minutes ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
4 hours, 33 minutes ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
4 hours, 36 minutes ago -
Limits on User Names
by
CWBillow
1 hour, 19 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
2 minutes ago -
Non Apple Keyboards
by
pmcjr6142
18 hours, 16 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
6 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
2 hours, 3 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
22 hours, 45 minutes ago -
default apps
by
chasfinn
22 hours, 27 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 day, 6 hours ago -
Adding links to text in Word 2000
by
sgeneris
3 hours, 33 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
1 day ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
2 hours, 15 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
1 day, 11 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
19 hours, 51 minutes ago -
Planning ahead for migration
by
Susan Bradley
14 hours, 50 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
22 hours, 36 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
1 day, 2 hours ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
22 hours, 39 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 2 hours ago -
Win 11 24H2 Home or Pro?
by
CWBillow
23 hours, 22 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
3 days, 9 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
3 days, 21 hours ago -
Problem using exfat drives for backup
by
Danmc
3 days, 21 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 23 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.