Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default additem to a combobox from other excel worksheet

Hello every body

Can someone help me,

I would like to fill a combobox located in an excel whorksheet with th
data from other worksheet.

Ej Worksheet 1 whit the combobox1

Worksheet 2 with the data (A1:A100)

I have tried to initialize but it does not run and


thanks in advanc

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default additem to a combobox from other excel worksheet

Private Sub Userform_Initialize()
Combobox1.List = Worksheets("Sheet2").Range("A1:A100").Value
End Sub

if the combobox is on a worksheet, do it in the workbook open event

Private Sub Workbook_Open()
Worksheets("Sheet1").Combobox1.List = _
Worksheets("Sheet2").Range("A1:A100").Value
End Sub


--
Regards,
Tom Ogilvy

"gelu " wrote in message
...
Hello every body

Can someone help me,

I would like to fill a combobox located in an excel whorksheet with the
data from other worksheet.

Ej Worksheet 1 whit the combobox1

Worksheet 2 with the data (A1:A100)

I have tried to initialize but it does not run and


thanks in advance


---
Message posted from http://www.ExcelForum.com/



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
ComboBox AddItem code to reference cells in a Range HBC_MT Excel Discussion (Misc queries) 0 February 26th 09 04:05 PM
.AddItem list and populating combobox with created list pallaver Excel Discussion (Misc queries) 8 June 27th 08 12:36 PM
additem to combobox with an array jocke Excel Discussion (Misc queries) 2 September 29th 05 07:56 PM
Multiple Column ComboBox using Additem Jimmi Excel Programming 2 September 24th 03 02:40 AM
(Worksheet)Listbox1.additem = (Form)Listbox1.value ?? Tom Ogilvy Excel Programming 0 September 2nd 03 07:36 PM


All times are GMT +1. The time now is 05:22 PM.

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"