kenan
09-04-2014, 02:37 AM
Hi,
thanks for your answers. it helps really.
I have got new problem!
I wanna add dynamic vba code to "Thisdocuemnt"
if I try to add vba code with vbCrLf or Chr(13) & Chr(10) then crash office 2003.
Have anybody an idea, how can I solute this problem?
I use the followinfg code to add dynamicly ba code:
ThisDocument.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString " Sub ff()" & Chr(13) & Chr(10) & " End Sub "
thanks for your answers. it helps really.
I have got new problem!
I wanna add dynamic vba code to "Thisdocuemnt"
if I try to add vba code with vbCrLf or Chr(13) & Chr(10) then crash office 2003.
Have anybody an idea, how can I solute this problem?
I use the followinfg code to add dynamicly ba code:
ThisDocument.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString " Sub ff()" & Chr(13) & Chr(10) & " End Sub "