+ Reply to Thread
Results 1 to 6 of 6

Command Line to open Outlook with default profile

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Command Line to open Outlook with default profile

    Hi,

    This Command Line switch opens my Outlook with the profile "WORK" which is the default profile

    Please Login or Register  to view this content.
    However, I would like it to open Outlook in safe mode with the profile that is set to default and I don't know its name. Can it accept the index of Profile?

    Help would be greatly appreciated

    Best Regards

    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Command Line to open Outlook with default profile

    Not sure if I correctly understood your request but this opens the Choose Profile dialog box to show all the profiles, not only the default one:
    Please Login or Register  to view this content.
    or maybe after adding Reference to Microsift Outlook xx.x Object Library:
    Please Login or Register  to view this content.
    Last edited by rollis13; 12-23-2021 at 08:20 PM.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Command Line to open Outlook with default profile

    Thanks rollis for the review. I want what you have provided in the second code snippet. However, I would be able to let you know as is it working as expected or not? on Monday.
    Last edited by ImranBhatti; 12-25-2021 at 06:02 AM.

  4. #4
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Command Line to open Outlook with default profile

    Thanks for the feedback, I'm not in a rush .

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Command Line to open Outlook with default profile

    Thank you so much rollis. It worked as expected. Really a magic line.

  6. #6
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Command Line to open Outlook with default profile

    Glad having been of some help .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to open outlook by command button
    By Shamz41 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2018, 10:43 AM
  2. Replies: 4
    Last Post: 11-25-2017, 04:09 PM
  3. Macro in workbook app to change default (open command) directory.
    By Audiology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2012, 08:33 AM
  4. [SOLVED] Open an Outlook folder when a user clicks on a command button ...
    By Rob Keel in forum Excel General
    Replies: 2
    Last Post: 08-01-2005, 04:05 AM
  5. Replies: 2
    Last Post: 08-01-2005, 04:05 AM
  6. [SOLVED] Open an Outlook folder when a user clicks on a command button ...
    By Rob Keel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2005, 04:05 AM
  7. set default zoom for a user profile
    By blaqb0x in forum Excel General
    Replies: 1
    Last Post: 01-27-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1