Quantcast
Viewing latest article 35
Browse Latest Browse All 108

creating custom buttons with visual Basic outlook's 2007

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...

creating custom buttons with visual Basic outlook's 2007

Viewing latest article 35
Browse Latest Browse All 108

Trending Articles