Question : Error when perform text replacement in Word

Hi Experts,

I'm having trying to do a macro that replaces certain text in my word document with text contained in pre-set bookmarks in another word document. Please refer to below the code.
I'm getting this error "String Parameter too long".

The bookmark contains a paragraph that is about 62 English words. When I test using less words, it works... Can anyone tell me is there a way to not limit the length of the replacement text?
1:
2:
3:
4:
5:
6:
Set rng1 = objDocVer.Bookmarks("bkmParagraph").Range
   With objDoc.Range.Find
        .Text = "[Terms and Conditions]"
        .Replacement.Text = rng1.Text
        .Execute Replace:=wdReplaceAll
   End With

Answer : Error when perform text replacement in Word

Since you can work on the HDD files using an IDE\Sata adapter.

You can load the registry form the host computer.

Within regedit, Click on HKey_Local_Machine so its highlighted.

Click File, Load Hive,  Browse to windows\System32\Config and choose System,

Create a name like No Logon.

No Logon should now appear under My Computer.

Open HK-L-M : Sofwate, Microsft, Windows Nt , Current Version, Windows NT, Winlogon

There should be a valu label shell , that should be the explorer.exe

You can search and write to this hive and when you unload it the changes will get saved.

You might also want to try the Microsoft User Profile Hive Cleanup Service (UPHClean), See: http://support.microsoft.com/kb/837115

Also to clarify what I wrote above see this link although not exactly the issue you are having it gives some good direction:Black startup screen is briefly displayed and your computer restarts repeatedly when you try to start Windows XP :  http://support.microsoft.com/kb/314466

Wes

Random Solutions  
 
programming4us programming4us