View Single Post
 
Old 12-21-2020, 03:07 PM
shaun0406 shaun0406 is offline Windows 10 Office 2010
Novice
 
Join Date: Dec 2020
Posts: 19
shaun0406 is on a distinguished road
Default

I tried the code provided, now it gives me a run time error

Run-time error '6124'
You are not allowed to edit this selection because it is protected

Correct me if I am wrong, the .FormFields() allow the it the field to be access/edit when it is protected. I have the correct form field text option bookmark in the .FormFields()

the debugger highlights oFF.Range.Text = " Format(oFF.Range.Text, "####-###-####")
from my understanding, this should be able to access the protected document oFF is accessing formFields

Just Curious,
does removing the IsNumeric on the If statement allows letters/characters to be typed in instead of just numeric digits?
Reply With Quote