-
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
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Login issues with Windows Hello
by
CWBillow
2 hours, 41 minutes ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
1 hour, 49 minutes ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
11 hours, 8 minutes ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
11 hours, 14 minutes ago -
Google AI is now hallucinating idioms
by
Alex5723
11 hours, 46 minutes ago -
april update
by
69800
7 hours, 45 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
12 hours, 40 minutes ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
12 hours, 53 minutes ago -
WuMgr not loading?
by
LHiggins
13 hours, 29 minutes ago -
Word crashes when accessing Help
by
CWBillow
4 hours, 56 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
12 hours, 31 minutes ago -
Blank Inetpub folder
by
Susan Bradley
9 hours, 56 minutes ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
23 hours, 3 minutes ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
9 hours, 28 minutes ago -
Wait command?
by
CWBillow
16 hours, 19 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
1 day, 5 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
1 day, 12 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
1 day, 21 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 day, 22 hours ago -
How to use Skype after May?
by
Joann
6 hours, 50 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
1 day, 17 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
2 days, 11 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
2 days, 12 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
11 hours, 29 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
17 hours, 41 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
2 days, 23 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
3 days, 3 hours ago -
Unable to eject external hard drives
by
Robertos42
1 day, 14 hours ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
1 day, 1 hour 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.