none
Cannot Find Text after a Comment is Added RRS feed

  • Question

  • Regarding the issue reported here

    I'm still getting this behavior with Microsoft Office Professional Plus 2010 Version 14.0.7116.5000 , and Visual Studio 2012.

    Was this fixed in some version/SP?

    Thanks,

    Yoel

    Tuesday, October 14, 2014 8:23 AM

All replies

  • Hi Yoel,

    Base on my test in VS2010 with word 2013 and VS2013 with office 2013, both of them work fine. (I added a comment to “starain”, then find “starain hello”)

    This is my code below:

      public void SelectionFind(string t)
            {
                object findText = t;
    
                Application.Selection.Find.ClearFormatting();
    
                if (Application.Selection.Find.Execute(ref findText,
                    ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
                    ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
                    ref missing, ref missing))
                {
                    MessageBox.Show("Text found.");
                }
                else
                {
                    MessageBox.Show("The text could not be located.");
                }
            }

    I suggest that you could refer to my code to test it and check the result.

    If you still have that issue, please share your project on the OneDrive.

    Best Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 15, 2014 8:03 AM
    Moderator