Autofilling new Google calendar event with VBA

RJSIGKITS

Board Regular
Joined
Apr 15, 2013
Messages
109
Hey guys.

I have a workbook that our users register client details, and create quotations with.

We are working to a more productive way of our users working, by offering them a 'fewer clicks' solution to their daily needs of the workbook, and I would like to be able to have the users click a 'Create appointment' button that opens a Google Calendar event, and autofills the fields with information that has already been entered on the workbook, in order to prevent the need to type in the same information multiple times.

I currently have this, which successfully opens a new Google calendar event:
Code:
Private Sub AddActivity_Click()ActiveWorkbook.FollowHyperlink "https://calendar.google.com/calendar/r/eventedit?pli=1" & Range("c6").Value
End Sub

The '& Range("c6").Value' is part of my attempt to make a start, but it does nothing...

I would need the Fields to be filled with cell data as follows:
TITLE = Cell J3
LOCATION = Cell K3
TIME = Cell L3
GUESTS = Cell M3

The user can still add data to some feilds that are impossible to autofill, but Any ideas on how we can autofill as many of these as possible would be greatly appreciated.

Thanks in advance
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
This can be done by sending XMLhttp requests to the Google Calendar API and handling the responses, but it's very involved and isn't easy.

First you have to register your application on the Google API Console and enable the Calendar API. Also, each request must be authorised, which means initially presenting a consent screen in IE that your user responds to. All these steps are described at https://developers.google.com/calendar/auth.
 
Upvote 0

Forum statistics

Threads
1,223,727
Messages
6,174,146
Members
452,547
Latest member
Schilling

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top