Excel VBA - display Skype Contact Card (Skype for Business) - vba

Looking for a way to display Skype presence (Skype for Business) by Excel vba.
I do see that Excel does have this capacity.
Excel -> File -> info has access/displays Contact Cards of the author of a given Excel document as well as the correct contact card of the last person who modified it.
The question is how to create a similar effect via vba code.
The current state of affairs is I already made a Userform that detects and extracts names of titled individuals from text written in the text box.
I have a correct name of a staff member in the program itself, now
I'd like for Skype Contact Card to appear on screen the same way the File->Info authors/modifiers do appear on screen.
Internet so far failed me in finding the answer.
I found http://users.skynet.be/fa258239/bestanden/skype4com/skype4com.pdf however solutions within seem not to work anymore (or on my version of Excel/VBA(?) Skype4COM Objects cannot be created

Skype for Business does not use Skype4COM - Skype for Business used to be Lync and uses the REST for interfacing via the UCWA library. See this Q&A

Related

VB Outlook Addin to transfer email information

I am attempting to create an add-in for outlook for where i work. The department in question use an in house built database application with a microsoft access front end built in vba.
Currently the team copy and paste information into the system. I have been tasked with creating an addin that will copy the necessary information such as
email address the email was sent from
Date & Time it was sent
message body
I have created the ribbon and have a button in place that currently displays "hello World".
Could anyone tell me how to get VB to read the information from the message? I have done some research on the internet but cannot find much information on this particular topic.
I would suggest you start here. This talks about how to do a lot of things with outlook using interop, which is the way you will need to work with it from a .Net addin.
How Do I... Outlook PIA Reference

Lync Server administrative interface

The task I am looking at is to automate the process of creating new users on a Lync 2010 server. Looking at the Lync Server SDK, this only allows creating new phone calls and sending IM. I'm looking for an interface to automate administrative task.
What I don't want to do in first place is to parse the web interface. Does anyone know of anything that might help?
There is a certain number of PowerShell cmdlets I wasnt aware of. The complete list can be found in the Documentation.
I don't find the good step-by-step guide I once came across, but there are several others out there that descript how you connect your PowerShell to the Lync Server (like this).
I haven't tested any of these scripts, but Microsoft also provides a list of useful scripts to administrate Lync (link).
The problem I was initially looking for was: How do I hide disabled user accounts in the Lync Contact list. This can be done by ticking the checkbox "Hide user from global address list" in Exchange (Note: when this is done via e.g. VBScript it takes some time before the GAL is updated, in my case the account first vanished from GAL and the next morning it also disappeared from the Lync Contact List).

Smartphone web page to send user's GPS coordinates to server

I'm a former professional developer from years ago, (VB.NET and old school ASP) but it's been a few years now I own a driving school so my skills are a bit out of date but still useful for my needs. For my driving school business I've created a scheduling application. It's a winforms application. It populates a database of course, which is used by web pages to display any instructor's daily schedule. Instructors view their schedules on their smartphones. Everything I just described either already works, or soon will.
Within the smartphone web page (which I refer to falsely as an "app" because I want it to be compatible with most smartphones) I would like to add the capability for the instructor to "Check in" to each appointment, and then to "check out" after each appointment by clicking ("touching") somewhere on the page.
The action of "checking in or out" would submit a web page request, which sends to my database a record that includes: Time of day, instructor ID, and GPS coordinates of the smartphone.
THE PURPOSE:
Reports can be generated from this data, revealing whether instructors arrive for lessons on time, and also confirming they did not finish a lesson early, and further confirming that when they "checked in" they were within a certain distance of the student's house. (This prevents them from "faking a check-in" while en-route but still far away.) Thus I can confirm my employees are providing appointments on-time, and giving lessons of appropriate length without need for installing GPS tracking devices in my cars. (Those things are expensive!)
FINALLY MY QUESTION:
I don't know how a web page can obtain the smartphone's current GPS coordinates such that they can be included within a subsequent web request. For example, a hidden field could be populated with longitude/latitude before the web request is submitted. Javascript is an acceptable approach if that works. I prefer a method that works for as many smartphones as reasonably possible. Can web pages on smartphones get this data? How?
Use HTML5 Geolocation that is supported my modern browsers. Use navigator.geolocation property via javascript and then send its coordinates through hidden fields, ajax or whatever you prefer. You can check how it works in your browser console:
navigator.geolocation.getCurrentPosition(function(position) {
alert(position.coords.longitude)
})
See more info here http://www.w3schools.com/html/html5_geolocation.asp

GetUserAvailability from Exchange from a COM Outlook addin

I have a COM Outlook addin programmed in C++ (VS2005). I'm trying to see if within this addin I can get a random user or resource and see if it is available during a certain meeting time. Basically I'm trying to do something like getuseravailability() from the 2007 Exchange Web Service api listed below.
getuseravailability
Is this the only way to get this information? I've been looking through CDO, ADSI, MAPI and the Outlook object model but can't find anything else like it. I'm avoiding using web services because the Exchange Servers I run against may not have it enabled/ may not be Exchange 2007. And also, I'm hoping for a COM api easily integrated with the existing Outlook COM addin, was really hoping for an OOM solution.
Am I wrong or would the webservices sdk require .net to be installed on the machine running the addin as well?
I believe I've found a way to do this with CDO. Will be trying a sample app for this to see if it does what I think it does.
http://msdn.microsoft.com/en-us/library/ms870482%28EXCHG.65%29.aspx
I didn't find this earlier because the MSDN library's default view doesn't easily let you browse through the table of contents for a section. You have to go into MSDNs preferences and choose "Classic View" to get the table of contents view on the left.

Is it possible to develop a chat plugin like Gtalk for outlook?

My company uses outlook as the email client and we login to an exchange server. Out address book (not individual contacts) has all the users connected to our company network.
Our company dont have IM ;-( .. I am thinking about developing an outlook plugin like Gmail's Gtalk . is this possible(technically)? Or how difficult it is? Will I be able to get the list of all users (from address book) who have opened their outlook so that I can show them in the online list?
Can I do this without a DB (just sent the message to the recepient and show them)?
Outlook development is new for me and the links in this question did not help me much (very confusing). Where can I get some basic tutorials to begin with?
Edit: I have worked with VBA in outlook. So if the above can achieved using VBA the it would be great ;-) Is that possible?
VBA is an old method of building Office plug-ins and has since been replaced with just a more straight forward VB/C# module coding method. VBA plugins from Office 2003 should work alright in Office 2007, but it's no longer the suggested method if you're looking at Office 2007 + 1.
If you're using Visual Studio 2005, look for information on the Visual Studio Tools for Office (VSTO) Second Edition add-on on MSDN. If you're on Visual Studio 2008, the VSTO packages should come with the Professional editions (or higher) by default. It'll have all the templates for building add-ons for the Office suite. Going with this new direction of coding add-ons, anything should be possible.
I've personally never tried to make any sort of server/client solution, so I'm not helpful on that front, but I thought I'd put that information out there for you to consider in your planning stage of making the chat solution.
As a note, the non-individual (Exchange) address book is also known as the Global Address List (GAL).
Outlook 2010 includes instant messaging:
Use instant messaging services with Outlook
Microsoft Outlook can be used with several instant messaging services.
You can tell if your contacts are available for a real-time online
chat, audio and video conferencing, or file sharing.
Note Online status is available for any person whose instant
messaging e-mail address that you have added to your instant messaging
contact list. In addition, online status is shown for people using
Microsoft Office Communicator, regardless of whether they are on your
instant messaging contact list.