I use these buttons in Word without any difficulty or problem.
Code of button1 (Paste Special):
Sub paste() Selection.PasteSpecial DataType:=wdPasteText End Sub
Code of button 2(date and time stamp):
Sub Macro1() ' ' Macro1 Macro ' ' Selection.InsertDateTime DateTimeFormat:="dd/MM/yyyy HH:mm", InsertAsField _ :=False, DateLanguage:=wdHebrew, CalendarType:=wdCalendarWestern, _ InsertAsFullWidth:=False End Sub
Both cases, I came across a strange error message:
run-time error '424 '; object required
I emphasize that I'm trying to add buttons to quick bar under the "Tasks" outlook 2007.
Thanks to anyone who can help
Code of button1 (Paste Special):
Sub paste() Selection.PasteSpecial DataType:=wdPasteText End Sub
Code of button 2(date and time stamp):
Sub Macro1() ' ' Macro1 Macro ' ' Selection.InsertDateTime DateTimeFormat:="dd/MM/yyyy HH:mm", InsertAsField _ :=False, DateLanguage:=wdHebrew, CalendarType:=wdCalendarWestern, _ InsertAsFullWidth:=False End Sub
Both cases, I came across a strange error message:
run-time error '424 '; object required
I emphasize that I'm trying to add buttons to quick bar under the "Tasks" outlook 2007.
Thanks to anyone who can help