Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Error to AutoCorrect.ReplacementList property.

Latest post Tue, Apr 15 2008 10:39 PM by homt398. 5 replies.
  • Tue, Apr 15 2008 1:05 PM

    • homt398
    • Top 50 Contributor
    • Joined on Tue, Jan 15 2008
    • Peking, China
    • Posts 12
    • Points 167

    Error to AutoCorrect.ReplacementList property.

    when i use following code, it return wrong massage: Error 1004, can not get AutoCorrect Replacement property.

    Sub test()
        Dim vList As Variant
        Dim i As Long
       
        vList = Application.AutoCorrect.ReplacementList
        For i = 1 To UBound(vList)
            Debug.Print vList(i, 1) & vbTab & vList(i, 2)
        Next
    End Sub

    www.officefans.net

    Jonathan Kuo

    Regards

    Filed under:
    • Post Points: 21
  • Tue, Apr 15 2008 1:34 PM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 336
    • Points 5,771
    • MVP

    Re: Error to AutoCorrect.ReplacementList property.

    It works fine for me in Office 2007

    Do you get the error on getting the property into your variable or when iterating them to the debug window?

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    Filed under: ,
    • Post Points: 36
  • Tue, Apr 15 2008 10:39 PM In reply to

    • homt398
    • Top 50 Contributor
    • Joined on Tue, Jan 15 2008
    • Peking, China
    • Posts 12
    • Points 167

    Re: Error to AutoCorrect.ReplacementList property.

     Hi, Nick

    Cause i use chinese version(2052), is it the problem?

    As following pictures show.

    i use WinXP2 + OfficeXP (2052), Office 2003(2052) also get the same error number.

     


     

    www.officefans.net

    Jonathan Kuo

    Regards

    • Post Points: 5
  • Wed, Apr 16 2008 12:57 AM In reply to

    • homt398
    • Top 50 Contributor
    • Joined on Tue, Jan 15 2008
    • Peking, China
    • Posts 12
    • Points 167

    Re: Error to AutoCorrect.ReplacementList property.

    Error highlight to "vList = Application.AutoCorrect.ReplacementList"

    i use OfficeXP chinese version (2052) , is it the problem? the same error to Office 2003 (2052).

     

    www.officefans.net

    Jonathan Kuo

    Regards

    • Post Points: 21
  • Wed, Apr 16 2008 2:47 AM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 336
    • Points 5,771
    • MVP

    Re: Error to AutoCorrect.ReplacementList property.

    That would be tough to know precisely, but I suspect that is a language issue. I think these earlier versions had the language built into the code base whereas later versions have language packs that lay over a US English code base.

    I would suggest you get someone with a new (XL2003/7) Chinese version to try it and see if it works.

    It certainly worked here.

    The only other thing to check is whether there are actually any autocorrect entries?

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    • Post Points: 21
  • Wed, Apr 16 2008 5:16 AM In reply to

    • homt398
    • Top 50 Contributor
    • Joined on Tue, Jan 15 2008
    • Peking, China
    • Posts 12
    • Points 167

    Re: Error to AutoCorrect.ReplacementList property.

    Hi, Nick

    Thanks for reply.

    Excel autocorrect work fine.(XP & 2003)

    I also send the same code to my friend  who is progammer. Code worked fine by using english & german Versions.

    and I checked Autocorrect List, it contained chinese item.

    so I can only presume that is language VERSION issue.

    anyway, thanks,

    www.officefans.net

    Jonathan Kuo

    Regards

    • Post Points: 5
Page 1 of 1 (6 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.