Results 1 to 3 of 3

combobox issue

Threaded View

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    combobox issue

    i hate finding bug, but i suppose that is part and parcel of doing this, but here goes.

    here is my combobox code:

    'Adds 20 - 200 in dropdownlist Bpm
    Private Sub worksheet_Activate()
    
    Dim i As Integer
    
    For i = 20 To 200
    Sheet1.Bpm.AddItem i
    Next i
    End Sub
    when ever my workbook is in protected mode my combobox list is empty, then i have to unprotect workbook, unhide a worksheet clear content then go back to combobox and my list "20 -200" is there, flippin annoying.

    can someone help please.

    Link to file

    I dont mind if i have to create a new sheet and call it temp and put from A2 downward 20 - 200 if that will help but still not sure how to programme it

    i tried this code but did not work

    Private Sub worksheet_Activate()
    Dim Tempo As Range
    Dim ws As Worksheet
    Set ws = Sheet3("Temp")
    
    For Each Tempo In ws.Range("Temp")
      With Me.Bpm
        .AddItem Tempo.Value
      End With
    Next Tempo
    
    End Sub
    Last edited by flyinghigher2011; 07-14-2013 at 03:50 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ComboBox Issue
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2013, 01:42 PM
  2. ComboBox Issue
    By Guido Meng in forum Excel General
    Replies: 0
    Last Post: 03-27-2013, 12:17 PM
  3. ComboBox Issue
    By Duncs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2006, 11:20 AM
  4. Combobox issue!
    By EagleWolf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2005, 09:22 AM
  5. Another ComboBox Issue
    By Darrin Henry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2005, 05:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1