+ Reply to Thread
Results 1 to 2 of 2

How to create a vbs file that can import a particular macro (bas file) into outlook

  1. #1
    Registered User
    Join Date
    06-15-2021
    Location
    Bangalore, India
    MS-Off Ver
    2016
    Posts
    1

    How to create a vbs file that can import a particular macro (bas file) into outlook

    Hello All,
    Can you please Help.
    I would like to have a .vbs file which when executed automatically imports a .bas file (stored in my desktop) and updates the outlook modules with the latest macros.
    I searched online, there are codes that is working in excel, apparently not in Outlook.

    "Set oApp = CreateObject("Outlook.Application")
    oApp.VBE.ActiveVBProject.VBComponents.import "C:\Users\JAS3BMH\Desktop\Module1.bas""

    the above code doesn't work



    Many thanks in advance,

  2. #2
    Forum Contributor
    Join Date
    06-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    124

    Re: How to create a vbs file that can import a particular macro (bas file) into outlook

    Hi, can you please share the code that works in excel?

+ 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. Replies: 3
    Last Post: 05-23-2019, 02:52 AM
  2. [SOLVED] How do I create a macro to import and sort a txt file with more than one delimiter?
    By JonnyEnglish in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2016, 03:57 AM
  3. Macro - Open File Explorer, Select File, Import certain information from file
    By Drayde in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2015, 08:58 AM
  4. Create an import file based on another file
    By Maureen405 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2014, 10:46 AM
  5. [SOLVED] Macro - Master file to import data from another open file with variable file name
    By jdodz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2012, 10:56 PM
  6. Replies: 8
    Last Post: 11-12-2012, 02:39 PM
  7. Replies: 3
    Last Post: 09-30-2011, 04:35 AM

Tags for this Thread

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