Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How can I copy a Combobox with all items ?

How can I copy a Combobox with all items, which is placed in cell "A1", to
another cell, maybe "A2" ?

Thanks in advance for any help !

Hans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How can I copy a Combobox with all items ?

Hi Hans

A2 and downwards:

Sheets(1).Range("A2").Resize(Me.ComboBox1.ListCoun t, 1).Value = _
Me.ComboBox1.List

HTH. Best wishes Harald

skrev i melding ...

How can I copy a Combobox with all items, which is placed in cell "A1", to another cell, maybe "A2" ?

Thanks in advance for any help !

Hans


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How can I copy a Combobox with all items ?

Hi Harald,

thank you for your answer !

I have a combobox in cell "A1", now i will create a new combobox in cell
"A2" with the same items of the combobox in cell "A1" !

You have any idea ?

Thanks in advance,
Hans


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How can I copy a Combobox with all items ?

Hi Hans

Not really. What kind of combobox is it, how did you create it ?

Best wishes Harald

skrev i melding
...
Hi Harald,

thank you for your answer !

I have a combobox in cell "A1", now i will create a new combobox in cell
"A2" with the same items of the combobox in cell "A1" !

You have any idea ?

Thanks in advance,
Hans




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How can I copy a Combobox with all items ?

Hi Harald,

Not really. What kind of combobox is it, how did you create it ?


My combobox in cell "A1" contains many names, e.g. "Harald", "Hans",
"Susi", "Eva", ...
I have created this combobox manually with the mouse from a toolbar
without VBA
and have filled it with VBA (.addItem("Harald")).

Now, this existing Combobox in the cell "A1" must be copied with VBA to a
new not existing Combobox
in the cell "A2" (completely with all names) !

I hope, you understood me !?

Have a nice Sunday !

Hans





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How can I copy a Combobox with all items ?

Hi Hans

Those combos aren't really in the cells, they are floating above them. Try
to use data validation instead:
http://www.contextures.com/xlDataVal01.html

HTH. best wishes Harald

skrev i melding
...

My combobox in cell "A1" contains many names, e.g. "Harald", "Hans",
"Susi", "Eva", ...
I have created this combobox manually with the mouse from a toolbar
without VBA
and have filled it with VBA (.addItem("Harald")).



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How can I copy a Combobox with all items ?

Hi Harald,

Those combos aren't really in the cells, they are floating above them.

Try
to use data validation instead:
http://www.contextures.com/xlDataVal01.html


many thanks for this great Link, I think, you are a genius !

Have a nice day !

Hans


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
sorting items in a combobox BartH Excel Programming 3 March 8th 06 05:15 PM
Format the items in a combobox 0000_AAAA_0000[_7_] Excel Programming 1 November 2nd 04 01:13 AM
how to add items to combobox Marek Excel Programming 3 August 30th 04 10:31 AM
ComboBox Items Todd Huttenstine[_2_] Excel Programming 1 December 14th 03 11:12 PM
ComboBox items Keith Willshaw Excel Programming 2 July 17th 03 11:22 AM


All times are GMT +1. The time now is 06:24 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"