F
Fred
I have a protected form that I wish to fill in using VBA but I keep get the
message that I am trying to type into a protected area.
I can manually type text into this form so why can't I do the same in VBA
When I record a macro as I type into the form I get something like
Sub Macro2()
'
' Macro2 Macro
' Macro recorded 22/06/07 by Fred Schreuder
'
Windows(1).Activate
Selection.TypeText Text:="Consignee"
Windows(2).Activate
End Sub
but if I then try to run the macro I get an error about a protect area.
I am not trying to bypass any protection I just want to be able to
automatically fillin the form as I would do when I type in the data.
Can some please tell me if this is possible with trying to unprotect the
document.
thanks
Fred
message that I am trying to type into a protected area.
I can manually type text into this form so why can't I do the same in VBA
When I record a macro as I type into the form I get something like
Sub Macro2()
'
' Macro2 Macro
' Macro recorded 22/06/07 by Fred Schreuder
'
Windows(1).Activate
Selection.TypeText Text:="Consignee"
Windows(2).Activate
End Sub
but if I then try to run the macro I get an error about a protect area.
I am not trying to bypass any protection I just want to be able to
automatically fillin the form as I would do when I type in the data.
Can some please tell me if this is possible with trying to unprotect the
document.
thanks
Fred