+ Reply to Thread
Results 1 to 3 of 3

Microsoft Visual Basic For Applications Extensibility Library

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Microsoft Visual Basic For Applications Extensibility Library

    I am using Office 2000 on Windows 2000 SP4.

    I have an associate who receives a spreadsheet with employee data from Human Resources. Unfortunately there is no rhyme nor reason behind how the incoming spreadsheet is named.

    I have the VBA that will do the manipulations the associate needs, and have saved the module as "randMod.bas".

    If I could rely on a reliable file name, she could put this into her personal.xls file and all would be good in the country.

    What I would like to do is create a routine in her personal.xls file and give her a button to activate that routine.

    I would like the button to import "randMod.bas" into the active workbook with the employee data. My theory is that if the module is in the actual employee file, I don't need the file name to do the manipulations required.

    I have tested this by manually importing the module and running the routines and all is good.

    Now, I need to know how to give her the ability to click a button that will import the module.

    In http://www.excelforum.com/showthread...00890#poststop there is a routine that I cannot make work. It does not get past the line: Dim myVBP As VBProject

    Jason says to "Make sure you add the Microsoft Visual Basic For Applications Extensibility Library before running, but I don't know how to do that.

    Under Tools > References, the following are checked: Visual Basic for Applications, Microsoft Excel 9.0 Object Library, OLE Automation, & Microsoft Office 9.0 Object Library.
    Thanks!
    Dennis

    I am using Windows 7 and Office 2007, all of my posts are based on this.

  2. #2
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389
    In the Vb editor go to tools >references and put a tick in the box beside
    Microsoft Visual Basic For Applications Extensibility see pic
    Attached Images Attached Images
    VBA - The Power Behind the Grid

    Posting a sample of your workbook makes it easier to look at the Issue.

  3. #3
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Issue Solved! Thank You

    I must have looked through that list three times and could not find "Microsoft Visual Basic For Applications Extensibility Library" Seeing your pic, I scrolled down about the same distance on the scroll bar and there it was!!


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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