Consulting

Results 1 to 3 of 3

Thread: ComboBox

  1. #1

    ComboBox

    Hi,

    I have a problem with a code because Im getting a runtime error (Activate method of Range class failed)

    [VBA]Option Explicit
    Private Sub ComboBox1_change()
    Dim c As Integer
    c = Application.WorksheetFunction.Match(ComboBox1.Value, Range("A4:BX4"), 0)
    Cells(4, c).Activate
    End Sub
    [/VBA]
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can't reproduce. What value did you select that gave this?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hi Bob,

    U can see the value in column I202:I222 in my ws

Posting Permissions

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