brett_x
07-01-2016, 11:55 AM
I'm working on a project (in Word 2011, Mac, but hopefully that isn't the issue) where I need to manipulate AutoText entries. I need to save what is in a Userform text field as an updated version of an existing Autotext entry.
When the Userform TextBox is around 256 characters, I get a run-time error '5854' 'String parameter too long'. The line it calls out is:
NormalTemplate.AutoTextEntries("autoTextEntry1").Value = TextBox1.Value
Since Autotext entries are not limited to 256 characters, it doesn't seem to be an autotext limitation. So is there a way around this? I've seen many posts about splitting up long strings for other purposes, and I'd really like to avoid that if possible (and practical, of course).
Thanks in advance.
- Brett
When the Userform TextBox is around 256 characters, I get a run-time error '5854' 'String parameter too long'. The line it calls out is:
NormalTemplate.AutoTextEntries("autoTextEntry1").Value = TextBox1.Value
Since Autotext entries are not limited to 256 characters, it doesn't seem to be an autotext limitation. So is there a way around this? I've seen many posts about splitting up long strings for other purposes, and I'd really like to avoid that if possible (and practical, of course).
Thanks in advance.
- Brett