I am getting issue like this "Item with specified name does not exist."
my code
Selection wordsec = Globals.ThisAddIn.Application.Selection;
if (sTextSz == "10")
{
object Text10 = "TableText10";
wordsec.set_Style(ref Text10);
}
else if (sTextSz == "9")
{
wordsec.set_Style("TableText9");
}
else
{
wordsec.set_Style("TableText8");
}
Please anyone send me the code in VSTO word

chetan AllipurRank #2,527 · 554 reputationPosted Jun 27, 2017, 8:25 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Jun 27, 2017, 10:07 PM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Jun 27, 2017, 10:09 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Jun 27, 2017, 10:23 PM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Jun 27, 2017, 5:18 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Jun 27, 2017, 5:55 AM EDT
2. What line of code causes the error?
Help us help you.
Nilesh ShahRank #42 · 34.2K reputationPosted Jun 27, 2017, 6:37 AM EDT