+ Reply to Thread
Results 1 to 2 of 2

How would I open a MsgBox or Inputbox in Excel, but from Outlook's session?

  1. #1
    Registered User
    Join Date
    10-15-2018
    Location
    England
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    1

    How would I open a MsgBox or Inputbox in Excel, but from Outlook's session?

    I have built a couple macros that automagically get the attached spreadsheets from an email and apply a reformat function, but I need to specify which reformat is required via an InputBox.

    Issue is that the InputBox is asking from Outlook but I need it to open in the Excel application. I thought something like this would work:

    __

    'code from outlook's vba (ThisOutlookSession)

    Dim Xl As Object

    Set Xl = New Excel.Application

    Xl.MsgBox "Test"

    __

    This syntax/code is completely wrong as the 'Application' object (Xl) doesn't have a 'MsgBox' property, but I hope it demonstrates what it is i'm trying to achieve.

    Thanks for your time

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How would I open a MsgBox or Inputbox in Excel, but from Outlook's session?

    I work this issue from the Excel Side. I have a spreadsheet where you fill in the Outlook folders to find the email and it goes out and downloads the attachments to whatever Excel folder that is filled in on this master spreadsheet.

    I also have code, in a different workbook, that opens a workbook and runs the macro you specify.

    These two pieces of code could be married - if you are willing to use Excel to pull from Outlook rather than use Outlook to push to Excel.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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] How Do I Open a Telnet Session From Excel in Windows 10 OS
    By pramoth.u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2017, 04:36 AM
  2. [SOLVED] How Do I Open a Telnet Session From Excel?
    By danaconda84 in forum Excel General
    Replies: 15
    Last Post: 05-23-2017, 02:16 PM
  3. Problem with InputBox and MsgBox in Search- Excel 2010
    By DKThib in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 12:21 PM
  4. [SOLVED] How to display a msgbox as soon as the outlook is open.
    By yeshwant_sur in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2012, 01:30 AM
  5. Open Excel Template in New Session
    By Sofistikat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2011, 10:56 PM
  6. Inputbox button control + msgbox for empty inputbox
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2009, 12:39 PM
  7. Each New Excel to open in another session
    By tinwasp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2005, 01:50 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