-
WSkerryg
AskWoody LoungerThanks for your reply. I think that I am stuck with my strays then, because the actual server that these old replicas were on has been replaced by another, so there is no chance of getting the path to the folder back again.
Never mind – its not a life threatenins situation. I can live with it.
Kind Regards
-
WSkerryg
AskWoody LoungerI have been watching this post with great interest as I have this very problem myself. I tried finding the MSysReplicas and was only successful in doing so when I took a copy of my design master (so it could experiment) and placed it on my desktop. However when I tried to delete the replicas from this table they wouldnt go. When I tried to show system files on the genuine design master the tables will not show at all.
So I will be interested to follow this post and see if anyone comes up with a result.
Kerry
-
WSkerryg
AskWoody LoungerWOW! Now this is going to be interesting. Something I havent seen or done before. I will paw over this tonight at home when I am uninterrupted.
Thanks Hans ( You always teach me something new!)
-
WSkerryg
AskWoody LoungerHi Hans
Hey if you have a better idea go for it! I inherited this godawful thing and have already culled a lot of unnecessary stuff.
-
WSkerryg
AskWoody LoungerThanks Steve. I will have to learn about Indirect now.
Did you see the tables at the bottom of the monthly stats sheet? Can I do this here as well? If so, start me off with rows 106 – 107 – 108 and I and then I can probably work the rest out for myself.
-
WSkerryg
AskWoody LoungerSensational!
Thanks everyone.
-
WSkerryg
AskWoody LoungerNow ya talkin!
I also looked at the switch function — with some work that perhaps would have done the trick too.
Thanks
-
WSkerryg
AskWoody LoungerThe screen dump shows [ ‘s that arent really there. So the dump I sent before is accurate, just disregard the [ ] at the beginning and end.
-
WSkerryg
AskWoody LoungerSorry to be a pain but I did exactly that but still have an error.
I think the key is to look at the part that says syntax error comma in query expression.
-
WSkerryg
AskWoody Loungersorry I am really confused now. Can you just type out what I should put inthe Control please?
-
WSkerryg
AskWoody LoungerThanks for this but I get this error,
-
WSkerryg
AskWoody LoungerI have cut the query down to make it clearer.
Criteria has two options – Local Inventory or Central Office Registered. These are too long for my labels I am printing so I want Local Inventory to change to Minor Asset and Central Office Registered to change to Major Asset.
I hope this is clearer.
SELECT tbl_CurrentAssets.Item, tbl_CurrentAssets.Criteria
FROM tbl_CurrentAssets; -
WSkerryg
AskWoody LoungerJust one little thing….. the split documents have a header that says “test”. How can I change this?
-
WSkerryg
AskWoody LoungerYou understood my babble!! Thanks Hans. This is SO much better! It even puts the newly created documents in the same folder as the original large file. You are brilliant! I cant thank you enough!
Kerry
-
WSkerryg
AskWoody LoungerHi Hans
I have come back to the original post hoping that you can recall what we did here. I am finding it hard to explain what I am trying to achieve so please bare with me here.
I have been using this macro as you suggested, but the process is quite cumbersome. I have to keep the .dot template on a flash drive and refer to it in my large document. I drag this module into my large document and run it. The Drive letter can vary from machine to Machine, so I have to edit the line Set docNew = Documents.Add(Template:=”F:split template.dot”) each time I run it. I need to teach someone else how to do this and I have to admit I have to think hard to remeber what to do everytime and it is a bit hit and miss.
The split chapters would be using the same template style as the document it is split from. Is there a way to make the split chapters simply be formatted the same? There by eliminating some of the manual handling of the macro.
Option Explicit
Sub SplitLevel2()
Dim docCur As Document
Dim docNew As Document
Dim rngTitle As Range
Dim rngChapter As Range
Dim rngTarget As Range
Dim lngStart As Long
Dim lngEnd As Long
Dim lngCnt As Long
Dim strChapter As StringOn Error GoTo ErrHandler
Application.ScreenUpdating = False
‘ Source document
Set docCur = ActiveDocument
‘ Set up to find Header 2
With docCur.Content.Find
.Text = “”
.ClearFormatting
.Style = wdStyleHeading2
.Format = True
‘ Find each occurrence
Do While .Execute
‘ Start and end of range
lngStart = lngEnd
lngEnd = .Parent.Start
‘ Are we at the beginning?
If lngCnt = 0 Then
‘ If so, define range with title and TOC
Set rngTitle = docCur.Range(Start:=lngStart, End:=lngEnd)
Else
‘ Else, define chapter range
Set rngChapter = docCur.Range(Start:=lngStart, End:=lngEnd)
‘ Create new document
‘Set docNew = Documents.Add
Set docNew = Documents.Add(Template:=”F:split template.dot”)‘ Copy and paste title/TOC range to new doc
rngTitle.Copy
docNew.Content.Paste
‘ Copy and paste chapter range at end of new doc
rngChapter.Copy
Set rngTarget = docNew.Content
rngTarget.Collapse Direction:=wdCollapseEnd
rngTarget.Paste
‘ Update TOC
docNew.TablesOfContents(1).Update
‘ Save new doc
docNew.SaveAs strChapter
‘ And close it
docNew.Close
End If
‘ Set up name for document in next round
strChapter = .Parent.Text
strChapter = Left(strChapter, Len(strChapter) – 1)
‘ Increase counter
lngCnt = lngCnt + 1
Loop
‘ Handle last chapter separately
Set rngChapter = docCur.Range(Start:=lngEnd, End:=docCur.Content.End)
‘ Create new document
‘Set docNew = Documents.Add
Set docNew = Documents.Add(Template:=”F:split template.dot”)
‘ Copy and paste title/TOC range to new doc
rngTitle.Copy
docNew.Content.Paste
‘ Copy and paste chapter range at end of new doc
rngChapter.Copy
Set rngTarget = docNew.Content
rngTarget.Collapse Direction:=wdCollapseEnd
rngTarget.Paste
‘ Update TOC
docNew.TablesOfContents(1).Update
‘ Save new doc
docNew.SaveAs strChapter
‘ And close it
docNew.Close
End WithExitHandler:
Application.ScreenUpdating = True
Exit SubErrHandler:
MsgBox Err.Description, vbExclamation
Resume ExitHandler
End Sub
![]() |
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
-
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
5 hours, 5 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
1 hour, 57 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
9 hours, 27 minutes ago -
two pages side by side land scape
by
marc
1 day, 8 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
1 day, 10 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
13 hours, 44 minutes ago -
Security Essentials or Defender?
by
MalcolmP
16 hours, 28 minutes ago -
April 2025 updates out
by
Susan Bradley
6 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
9 hours, 49 minutes ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
3 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 2 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
17 hours, 54 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
2 days, 5 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
2 days, 9 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
2 days, 11 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
2 days, 9 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 2 hours ago -
I installed Windows 11 24H2
by
Will Fastie
8 hours, 46 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 days, 14 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
22 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
2 days, 22 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
2 days, 7 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
2 days, 7 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
3 days, 15 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
3 days, 2 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
3 days, 8 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
3 days, 19 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
5 days, 11 hours ago -
50 years and counting
by
Susan Bradley
2 days, 9 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.