+ Reply to Thread
Results 1 to 3 of 3

view & select from another workbook within a userform

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    view & select from another workbook within a userform

    I've got a "configuration" workbook that stores the filename of an arbitrary "data" workbook and the cell address of a particular piece of data in that file.

    I'd like to design a helper macro for filling out the "configuration" workbook. I'd like to be able to display the contents of the "data" workbook in a userform and prompt the user to select a cell. The address of that selected cell would then be automatically stored in the "configuration" workbook.

    Can anyone recommend a strategy? Is this plan even possible?
    Last edited by dlh; 11-19-2010 at 02:48 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: view & select from another workbook within a userform

    A combobox in the userform

    Private Userform_initialize()
      Combobox1.list=workbook("date").sheets(1).cells(1,1).currentregion.value
    End Sub



  3. #3
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    Re: view & select from another workbook within a userform

    Thanks, snb. That looks like a reasonable strategy. But I was hoping there would be some way of embedding an actual worksheet object in a userform. Something that would recreate the appearance of the original worksheet.
    Last edited by dlh; 11-19-2010 at 03:21 PM.

+ 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