Gerry - please see below:
1. What version are you using? AQUA?MSO 2000
2. I can not get as Me.Undo. I get Me.UndoAction.
Constants can, and should, be declared publicly. Why are you declaring them in each procedure? AQUA?No reason.
3. State again what you are trying to do? AQUA?I have 4 option buttons in a doc. And the thought is that each time one of the option buttons are selected a file will be inserted into the current document. This part work fine. The problem is that if the EU selects an option button initially, then selects a different option button, I would like the inserted document to be removed and replaced with the newly selected doc.
4. If you have an instruction that actually inserts the file...and it has done so, are you saying that Undo will take the inserted text out? I don't think so. You could certainly write code that would allow this to happen (make the inserted file a range, thereby allowing its explicit deletion). However, if I understand correctly, Undo applies to the Userform itself. An instruction that affects the document - not the userform - will not be undone by Undo. AQUA?When I stated ?userform? in my original post, I mean that I am trying to create a document that acts like a form?? I hope that makes sense?
Tony - I tried to use ?activedocument? in lieu of ?me?, but had the same result. The odd thing is that the insertfile is an undoable action in Word2000 when initiated with VBA by using ?ctr + Z? manually.
Thanks, Dan