Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default macro to enter variable in combobox

Tanks

"Rowan Drummond" wrote:

Try:

Dim myStr As String
myStr = "The Value"
Me.ComboBox1.AddItem myStr


Hope this helps
Rowan

MervB wrote:
(Using VBA) I have a userForm which contains a ComboBox - data can be entered
into the Userform manually or via a macro (ie. some of the data is contained
in variables). How can I use a variable to make an entry in a Combo box - I
am not talking of creating a range etc. - think of it as if a user was
entering text via the keyboard.

MervB
:-)


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
Enter text in a Combobox aftamath77 Excel Discussion (Misc queries) 2 April 24th 09 08:58 PM
Can Combobox range be variable? Matt[_33_] Excel Programming 3 October 6th 05 08:15 PM
Variable ComboBox on Userform DHallam Excel Programming 2 July 19th 05 12:20 PM
Filling combobox with variable length list Denny Behnfeldt Excel Programming 3 January 2nd 05 06:31 PM
Do combobox allow user to enter text? Daniel[_14_] Excel Programming 0 September 1st 04 09:07 AM


All times are GMT +1. The time now is 03:50 PM.

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

About Us

"It's about Microsoft Excel"