Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default .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 '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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default .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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlsource Puzzlement Francis Knight Excel Programming 3 November 12th 05 10:10 PM
Controlsource errors Mats Samson Excel Programming 7 August 4th 05 04:49 PM
Format & ControlSource Oskar von dem Hagen[_2_] Excel Programming 1 May 26th 05 09:53 AM
ControlSource Greg[_20_] Excel Programming 2 April 2nd 05 04:57 AM
Controlsource David Coleman Excel Programming 5 December 28th 03 01:14 PM


All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"