AndrewMcLaughlin
asked on
Run-Time Error 5151
I receive a Run-Time error 5151 message when I try out a module in Immediate view. When I choose the debugger it yellow highlights the line:
Set m_objects=m_objWord.Docume nts.Add(m_ strDIR & m_strTEMPLATE)
Can anyone suggest what's going wrong here?
Thanks,
Andrew
Set m_objects=m_objWord.Docume
Can anyone suggest what's going wrong here?
Thanks,
Andrew
Would help when you post the exact message.
Some thoughts:
1) Do you have a final "\" in the m_strDIR
2) Does the constructed name already exist ?
Nic;o)
Some thoughts:
1) Do you have a final "\" in the m_strDIR
2) Does the constructed name already exist ?
Nic;o)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i.e. check what it is beforehand
msgbox m_strDIR & m_strTEMPLATE