What I import stuff I unlock the document, import and lock. All this was done in VBA code. Sadly that code is not shareable due to it's a "work" piece and I'd have to ask to share.
But maybe that will give you more of a clue.
-> Yes it makes a difference. But you didn't answer my question or give up much more detail about what you wanted to achieve. I will share that working with a locked document is a dead end. I tend to toss that out during the automatic updates so I can get it done. There are those that much have the document locked and as such we have to sit and wait for the world to close in on those before they relent and move to what works.
Bob