Programming VBA in an Outlook form -


i created own outlook form use standard surface enter orders instead of normal message form. creation, editing , sending works fine , in next step want insert code via vba. problem can´t access objects of form in vba editor. e.g. want show message box when checkbox checked. according code be:

sub example() if checkbox1.value = true msgbox("checkbox 1 checked.") end if end sub 

when run code error object not found. same goes every other object, textboxes or labels etc. guess solution pretty simple, putting item. or sth. in front of each object. far wasn't able find solution.

i´m using outlook 2010.

the following excerpt here

when use custom form, outlook supports click event controls. natural choice buttons not optimal controls combo box. write code inserting form’s vbscript editor. need have outlook form open in form designer , click view code button found in form group of developer tab.

sub checkbox1_click()   msgbox "hello world" end sub 

the code page minimal no syntax highlighting. tried , work. dont forget publish form pick new changes.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -