creating custom buttons with visual Basic outlook's 2007

Jun 28, 2013
Reaction score
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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads