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?
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.
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
>
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks