Results 1 to 4 of 4

Dynamically link to control via module

Threaded View

  1. #1
    Registered User
    Join Date
    03-03-2008
    Posts
    2

    Dynamically link to control via module

    Hello,

    I am trying to code to a combobox on a worksheet (Excel 2003) from a module using variables.

    The following code gets me part of the way:

    Dim wbHold As Workbook
    Set wbHold = ThisWorkbook
    
    
    wbHold.Worksheets("Worksheet1").combobox1.AddItem "test"
    However I need to replace the name "combobox1" with a variable.




    Thanks
    Last edited by VBA Noob; 03-03-2008 at 11:59 AM.

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