+ Reply to Thread
Results 1 to 1 of 1

Listbox populate document on company network.

  1. #1
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Listbox populate document on company network.

    Hi

    I would like to populate a document from a company network from a listbox using the document name and path. I have successfully achieved it with a hyperlink, but the document will be updated at times and i assume if the documents with the same file name then the path would work better than a hyperlink, am i correct? If so how can i amend my code.

    Private Sub ListBox1_Change()

    Dim strFile As String, f As Range, ws As Worksheet

    Set ws = Worksheets("Lenders A-D")

    If ListBox1.Value = "" Then Exit Sub

    Set f = ws.Range("A:A").Find(ListBox1.Value, , xlValues, xlWhole)

    If Not f Is Nothing Then

    ActiveWorkbook.FollowHyperlink Address:=ws.Range("C" & f.Row), NewWindow:=False

    Unload Me

    userformProp.show



    End If



    End Sub
    Last edited by molesy; 05-01-2023 at 01:26 PM. Reason: Code

+ 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. Populate Word Document Templates from Excel Document
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2021, 01:53 PM
  2. [SOLVED] Opening a Web Site works on a standalone PC but not when it's on a company network.
    By papashep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2021, 03:49 PM
  3. [SOLVED] Restrict user to open excel file outside company network
    By Vivek2705 in forum Excel General
    Replies: 2
    Last Post: 05-10-2019, 05:15 AM
  4. Populate (ca 200) Txtboxes depending on listbox selection, live-filter for listbox &1 more
    By InternInNeed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2016, 09:56 AM
  5. Company network analysis in Excel :
    By Artifax in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-20-2013, 03:27 PM
  6. [SOLVED] Populate word document with listbox selections
    By AndyE in forum Word Programming / VBA / Macros
    Replies: 18
    Last Post: 08-24-2012, 09:00 AM
  7. [SOLVED] How do I put a company logo in the background of an Excel document
    By Stuart Duong in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2006, 09:27 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