469,090 Members | 1,314 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

VBA excel: How to enable combobox selection

I want to store data’s in selected sheet from drop down menu in userform .Suppose if I select sheet 1 data should be stored in sheet1 if I select sheet2 data’s should be stored in sheet2 . With the code below I can add sheet names in combo box. If someone helps me I shall be grateful to you.
Expand|Select|Wrap|Line Numbers
  1. Private Sub UserForm_Initialize()
  2. Dim i As Integer
  3. For i = 1 To Worksheets.Count
  4.     Me.ComboBox1.AddItem Worksheets(i).Name
  5. Next i
  6. End Sub
Jul 19 '10 #1
1 2328
637 Expert 512MB

That seem fine, so fare, but what is the problem?

Jul 19 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Ivan V via DotNetMonster.com | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.