Thanks for the interest Perry.
I renamed userform and macro as suggested but problem still arises.
I've got the workaround in place (Hide/Show) so it's a not a matter of
urgency, but rather, curiosity!
Cheers
Ian B
> Apologies for cross posting, I posted similar to WordVBA addins, but the
> more I investigate the more it relates to Wd2003 and UserForms.
Hmm, I doubt this.
No relevant changes have been made to the MS Word object modell
regarding userforms (or the usage of such) as opposed to XP or 2000.
The problem -most likely- will have a different cause.
I can't duplicate yr scenario because I don't use the target Office (Word)
version(s) ...
There are a couple of pointers I could give you:
- have you checked your code in a scenario in which no other addins are
loaded?
- have you checked (menu: Tools | Options) whether all documents are grouped
in the Taskbar?
Change this setting and try yr code again. Any results?
If no results, you'll have to kick in more code for people to investigate.
--
Krgrds,
Perry
System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
> Thanks for the interest Perry.
> I renamed userform and macro as suggested but problem still arises.
[quoted text clipped - 62 lines]
>>>
>>> Ian B
Ian Bayly - 11 Apr 2007 03:25 GMT
Perry
I have re-tested as you suggested, ie no addins, changing MDI-SDI settings
still have error. I also created a new Normal.dot.
The curious thing is how specific the circumstances are to be to reproduce
the problem.
Code is minimal thus:
~~~~~
Sub TestIt()
myForm.Show
End Sub
~~~~~
Private Sub CommandButton1_Click()
Dim sFile As String
sFile = "C:\Documents and Settings\Ian\My Documents\Document2.doc"
Documents.Open FileName:=sFile
End Sub
~~~~~
Cheers
Ian B
>> Apologies for cross posting, I posted similar to WordVBA addins, but the
>> more I investigate the more it relates to Wd2003 and UserForms.
[quoted text clipped - 90 lines]
>>>>
>>>> Ian B