|
-
Feb 14th, 2006, 08:20 AM
#1
Thread Starter
Lively Member
VB - Outlook question: How can I check if someone is in a meeting ?
How can I tell if someone who uses outlook in lan is currently in a meeting ?
Thanks !
-
Feb 14th, 2006, 08:40 AM
#2
Re: VB - Outlook question: How can I check if someone is in a meeting ?
Moved to Office Development
-
Feb 14th, 2006, 10:25 AM
#3
Re: VB - Outlook question: How can I check if someone is in a meeting ?
You can either do a .Restrict or a .Find for the person on the Calendar in question checking the date range.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 15th, 2006, 03:31 AM
#4
Thread Starter
Lively Member
Re: VB - Outlook question: How can I check if someone is in a meeting ?
Thanks RobDog,
But I don't know the vb - outlook interface that well,
can you add a small piece of code to explain ?
-
Feb 19th, 2006, 01:58 AM
#5
Re: VB - Outlook question: How can I check if someone is in a meeting ?
This should give you all the mechanics to do what you need.
VB Code:
Option Explicit
'Code written by RobDog888
'Add a reference to MS Outlook xx.0 Object Library
Private Sub Command1_Click()
Dim oApp As Outlook.Application
Dim oAppts As Outlook.Items
Dim oAppt As Object 'Late bind as Object in case there are other types of calendar items (Appt or Meeting)
Dim sToday As String
Set oApp = New Outlook.Application
Set oAppts = oApp.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar).Items
oAppts.Sort "[Start]"
oAppts.IncludeRecurrences = True
'Restrict the collection to just today
sToday = "([Start] >= '" & Date & " 12:00 AM' AND [Start] < '" & DateAdd("d", 1, Date) & " 12:00 AM')"
sToday = sToday & " AND"
sToday = sToday & " ([Subject] = 'Crucial Meeting')"
Set oAppts = oAppts.Restrict(sToday)
oAppts.Sort "[Start]"
Set oAppt = olAppts.GetFirst
Do While TypeName(oAppt) <> "Nothing"
'Display all the appointments during this day and with the subject 'Crucial Meeting'
MsgBox oAppt.Subject & vbNewLine & oAppt.Start & " - " & oAppt.End, vbOKOnly, "Meeting Date/Time"
Set oAppt = oAppts.GetNext
Loop
Set oAppt = Nothing
Set oAppts = Nothing
oApp.Quit
Set oApp = Nothing
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 19th, 2006, 09:33 AM
#6
Thread Starter
Lively Member
Re: VB - Outlook question: How can I check if someone is in a meeting ?
Thanks RobDog888, That's looks great !!
-
Feb 19th, 2006, 09:41 AM
#7
Thread Starter
Lively Member
Re: VB - Outlook question: How can I check if someone is in a meeting ?
One last thing...
This code return my schedule. How can I tell if someone else is busy right now ?
-
Feb 19th, 2006, 01:25 PM
#8
Re: VB - Outlook question: How can I check if someone is in a meeting ?
You will need to open the Calendar where that info is like a Public Calendar or a Shared Calendar.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|