hello.
I have this code:
When i select multiple items i get un error.Whaty i want is to show me the msgbox error when i get that error.
The code as it is now, pops up the msgbox everytime i insert data.
What should i do?
thanks
I have this code:
Code:
Sub InsertDate()
Dim Error As Integer
On Error GoTo Err
Selection.InsertDateTime DateTimeFormat:="dd.MM.yyyy", InsertAsField:= _
False, DateLanguage:=wdRomanian, CalendarType:=wdCalendarWestern, _
InsertAsFullWidth:=False
Err:
MsgBox "Atentie.Au fost selectate mai multe informatii.Corectati selectia!", vbInformation, "Atentie"
End Sub
When i select multiple items i get un error.Whaty i want is to show me the msgbox error when i get that error.
The code as it is now, pops up the msgbox everytime i insert data.
What should i do?
thanks