Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Random VBA Question

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

LustyLew
World Chat Champion



Joined: 19 Apr 2004
Karma :

PostPosted: 17:50 - 08 Jan 2019    Post subject: Random VBA Question Reply with quote

Anyone a VB whiz who might be able to help?

I have created a ribbon button in Outlook 2016 which opens a URL to the users spam filter. currently this opens the default browser (IE 11) in a maximized view.

We use Enterprise Vault as an email archiving tool, if you hit the search button on the EV ribbon, it opens a web based browser embedded into Outlook itself. It opens where you'd expected to see email items and the preview pane.

I am a complete novice to VB, but it would be nice to have the Quarantine button behave in a similar way.

Here's the code I've used:
Option Explicit

Private Declare Function ShellExecute _
Lib "shell32.dll" Alias "ShellExecuteA" ( _
ByVal hWnd As Long, _
ByVal Operation As String, _
ByVal Filename As String, _
Optional ByVal Parameters As String, _
Optional ByVal Directory As String, _
Optional ByVal WindowStyle As Long = vbMaximizedFocus _
) As Long

Public Sub OpenQuarantine()

Dim lSuccess As Long
lSuccess = ShellExecute(0, "Open", "https://protection.office.com/#/quarantine")

End Sub



Cheers!
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 5 years, 81 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.07 Sec - Server Load: 0.39 - MySQL Queries: 17 - Page Size: 28.97 Kb