+ Reply to Thread
Results 1 to 2 of 2

.ControlSource

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    183

    .ControlSource

    I have this bit of code in a macro

    With C5B_UserForm.ComboBox1
    .RowSource = mSource
    .ControlSource = Worksheets("Template").Range("X4")
    End With


    However Im getting an '380' error on the ControlSource bit, anyone know why?
    Last edited by Ctech; 03-27-2006 at 07:06 AM.

  2. #2
    Martin
    Guest

    RE: .ControlSource

    You're giving it an Excel range but it's expecting a string that contains the
    address of the range. Just stick .Address on the end.

    "Ctech" wrote:

    >
    > I have this bit of code in a macro
    >
    > With C5B_UserForm.ComboBox1
    > .RowSource = mSource
    > .ControlSource = Worksheets("Template").Range("X4")
    > End With
    >
    > However Im getting an '3802 error on the ControlSource bit, anyone know
    > why?
    >
    >
    > --
    > Ctech
    >
    >
    > ------------------------------------------------------------------------
    > Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
    > View this thread: http://www.excelforum.com/showthread...hreadid=526689
    >
    >


+ 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