-
WSase001
AskWoody LoungerWorked a treat, many thanks.
-
WSase001
AskWoody LoungerBeryl,
final word(?), I correct my original post with:activedocument.fullname
to show path and filename of the actual document and not the application program
Alan
UK
Cheshire -
WSase001
AskWoody LoungerOK, I error’d
.
Sorry Beryl, and much thanks for pointing out error in subsequent post.
OK, so instead of placing the path and filename in the title bar, (and risk not having it work for activewindow), why not include path as part of the header and change font to hidden? Unless the user has hidden text to print such as in track changes then you’ll have the path at the top of each page.
Just a thought.
Alanp.s. Is it me, or is Word one of the best strategy games you’ve played as well?
-
WSase001
AskWoody LoungerBeryl,
Open the document in question and select Alt+F11
On the left of the VBE (visual basic editor) window you should see the project explorer window (if not, select Ctrl+R)
In this window select This document and press F7
In the code window on the right (maximise if necessary) select Document (under General) and Open from the right selection box.(when you first select general it may put you in the New-document sub-procedure)
Add the following code as necessary:Private Sub Document_Open()
Application.Caption = Application.Path & ” ” & ActiveDocument.Name
End SubThe existing limits of Private Sub Document_Open() and End Sub should already have appeared.
Save the document and next time it opens you should have the path and filename in the title bar.
(Although it does flag up macro warning each time you open the doc)
Hope this helps.
Regards
Alan
UK
Cheshire -
WSase001
AskWoody LoungerHedgehog,
Thanks for the tip. For now it doesn’t seem to want to know but I think I may have a ‘bodge-it’ solution – create a couple of lines macro in word to insert the page break, or change the font to blue, then call the macro by name from within the Excel code. So far it gets around the problem, but I’d really appreciate any help on not having to put a macro in the word template.
Thanks again.
Alan -
WSase001
AskWoody LoungerUsing the address of the currently active cell:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Select Case ActiveCell.AddressCase “$D$7”
Cells(1, 2).SelectCase “$E$19”
Cells(1, 2).Select
End SelectEnd Sub
hope this helps
-
WSase001
AskWoody LoungerFor a while I had resigned myself to the fact that it could not be achieved.
Not so in this case.
Many thanks Rory. -
WSase001
AskWoody LoungerJerryC,
Fantastic, saved my bacon.
Quite right you are that the format is to be changed in the row source.
fyi the original row source was along the lines of
SELECT [Data_Vehicle_Ref],Sum([Data])AS [Data point],
Sum([Nominal_Value]) AS [Nominal Value], FROM [qryChartData] GROUP BY [Data_Vehicle_Ref];and has now been modified to:
SELECT [Data_Vehicle_Ref],Format(Sum([Data]),”0.000″) AS [Data point],Format(Sum([Nominal_Value]),”0.000″) AS [Nominal Value], FROM [qryChartData] GROUP BY [Data_Vehicle_Ref];Still can’t understand where the last four dp’s came from, but now I don’t care.
Many many thanks.
All that remains now is to how to export the whole report and chart to word.
Regards
Alan
UK -
WSase001
AskWoody LoungerHello Brian,
Yes I have been to that stage and set the formats to fixed 3d.p.’s
I have also ‘rippled’ through all of the (known/common) stages at which the data is referenced to make sure it is set to 3d.p.’s
What is so puzzling and very annoying is that the figures have most definitely been inputted as say 345.220 and yet out of the ether 7d.p. figures are appearing of say 345.2199905 These data figures are totally fictitious yet are appearing to within .0000005 of the original figures (the actual variance is quite wide and not attributable to a calc but appears to be random)
TIA
Alan UK -
WSase001
AskWoody LoungerThanks Jerry but unfortunately the Row source for the chart is already containing the SELECT statement with SUM[Data] AS [Data points] etcetera. I have searched all help and knowledge base files but to no avail.
When I reached the row source to change the format I was back at my query which I have now changed to general format and 3 decimal places – still no luck with all numbers still showing 7 decimal places.
TIA
Alan
![]() |
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
-
Windows .exe on Mint
by
Slowpoke47
30 minutes ago -
Reviewing your licensing options
by
Susan Bradley
30 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
39 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
41 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
1 hour, 24 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
9 hours, 21 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
12 hours, 17 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
1 hour, 41 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
16 hours, 19 minutes ago -
Microsoft Backup
by
Linda2019
9 hours, 2 minutes ago -
What is the best notepad++ version for W7?
by
Picky
19 hours, 12 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day, 2 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day, 2 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
1 day, 21 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
1 day, 21 hours ago -
Microsoft vs Passwords
by
Alex5723
1 day, 5 hours ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
2 days, 1 hour ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
2 days, 1 hour ago -
Two March KB5053606 updates?
by
Adam
1 day, 18 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
1 day, 19 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
1 day, 21 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
1 day, 20 hours ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
1 day, 20 hours ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
2 hours, 23 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
2 days, 13 hours ago -
Removing bypassnro
by
Susan Bradley
12 hours, 18 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
1 day, 17 hours ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
18 hours, 41 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
2 days, 22 hours ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
2 days, 18 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.