+ Reply to Thread
Results 1 to 3 of 3

Removing the Active Workbook from a listbox

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    Lexington, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Removing the Active Workbook from a listbox

    Ok here is the case, I'm using indirect formulas to link data from another open workbook for some calculations and other stuff. I'm using a button and a listbox to get the full file path of the other worksheet I want it to pull data from (Then trim formulas actually establish the link and pull the data).

    The reason for this is because the other workbooks change daily and the other's using this sheet are even less savy about excel then myself. Perhaps there are better methods but with my knowledge its all I've come up with.

    However everything is working great so far and there is one last little cosmetic issue i'd like to remove. The listbox populates the file path's of all open workbooks when the button is clicked. From there the selection from the listbox is copied to a cell on my spreadsheet and trim formulas take over (This works because the sheets that this is referencing are always in some date format like "MM-DD-YYYY.xls". What i'd like to do is remove my sheet from the list so that the only workbooks that are shown in the list are the others. I just don't know know to do it. The macro that actually populates the listbox with the open workbook's filepaths is shown below. I should note that i'm very new to vba.
    Please Login or Register  to view this content.
    I really appreciate any help here.
    Last edited by Digital21000; 04-19-2011 at 09:06 PM. Reason: Solved

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Removing the Active Workbook from a listbox

    Please Login or Register  to view this content.
    Last edited by tlafferty; 04-19-2011 at 09:02 PM.

  3. #3
    Registered User
    Join Date
    04-14-2011
    Location
    Lexington, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Removing the Active Workbook from a listbox

    Quote Originally Posted by tlafferty View Post
    Please Login or Register  to view this content.
    Worked like a charm, much appreciated!

+ 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