vba - How to export email addresses from outlook meeting request -


i sent outlook (2010) meeting request company (4000+) , send additional email accepted request or accepted tentatively.

how do that? when hit contact atendees --> new email atendees in ribbon send response company , not accepted. tried export contacts can export name alias , not entire email addresses.

any suggestions?

thanks

the basis of solution found here get meeting attendee list macro

here minor changes.

option explicit  sub getattendeelist()  dim objapp outlook.application dim objitem object dim objattendees outlook.recipients dim objattendeereq string dim objattendeeopt string dim objorganizer string dim dtstart date dim dtend date dim strsubject string dim strlocation string dim strnotes string dim strmeetstatus string dim strcopydata string dim strcount  string  dim ino, it, ia, ide  dim x long dim listattendees mailitem  'on error resume next  set objapp = createobject("outlook.application") set objitem = getcurrentitem() set objattendees = objitem.recipients  on error goto endclean:  ' appointment if objitem.class <> 26   msgbox "this code works meetings."   goto endclean: end if  ' data dtstart = objitem.start dtend = objitem.end strsubject = objitem.subject strlocation = objitem.location strnotes = objitem.body objorganizer = objitem.organizer objattendeereq = "" objattendeeopt = ""  set listattendees = application.createitem(olmailitem)  ' <---  ' attendee list x = 1 objattendees.count    strmeetstatus = ""    select case objattendees(x).meetingresponsestatus      case 0        strmeetstatus = "no response (or organizer)"        ino = ino + 1      case 1        strmeetstatus = "organizer"        ino = ino + 1      case 2        strmeetstatus = "tentative"        = + 1         listattendees.recipients.add objattendees(x) ' <---       case 3        strmeetstatus = "accepted"        ia = ia + 1         listattendees.recipients.add objattendees(x) ' <---       case 4        strmeetstatus = "declined"        ide = ide + 1     end select     if objattendees(x).type = olrequired       objattendeereq = objattendeereq & objattendees(x).name & vbtab & strmeetstatus & vbcrlf    else       objattendeeopt = objattendeeopt & objattendees(x).name & vbtab & strmeetstatus & vbcrlf    end if next   strcopydata = "organizer: " & objorganizer & vbcrlf & "subject:  " & strsubject & vbcrlf & _   "location: " & strlocation & vbcrlf & "start:    " & dtstart & vbcrlf & "end:     " & dtend & _   vbcrlf & vbcrlf & "required: " & vbcrlf & objattendeereq & vbcrlf & "optional: " & _   vbcrlf & objattendeeopt & vbcrlf & "notes " & vbcrlf & strnotes   strcount = "accepted: " & ia & vbcrlf & _   "declined: " & ide & vbcrlf & _   "tentative: " & & vbcrlf & _   "no response: " & ino  'set listattendees = application.createitem(olmailitem)   listattendees.body = strcopydata & vbcrlf & strcount   listattendees.display    listattendees.recipients.resolveall   ' <---  endclean: set objapp = nothing set objitem = nothing set objattendees = nothing end sub 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -