Macro doubt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to everyone;

I need to fill a comboBox with a row instead of a column. How colud I do it?
The restriccion is that I can't transpose the row.

Thanks to all.
 
Use code to fill the combobox.

Look at the .additem method for the combobox.

dim myRng as range
dim myCell as range
set myrng = worksheets("sheet1").range("a1:e1")
for each mycell in myrng.cell
me.combobox1.additem mycell.value
next mycell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

repeating macro 2
Transpose Large Column to Row 2
MACRO Problem 1
Copying data to the next blank row 0
Sumif Horizontal 6
Transpose, but how? 0
Excel Add rows automatically in excel 3
transpose multiple rows at once 4

Back
Top