Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: ComboBox rowSource

  1. #1
    Guest

    Default

    Help....My codes:
    ComboBox1.RowSource = "'Sheet1'!AA1:AA" & lastUsedRow
    ComboBox1.Value = Range("AA" & lastUsedRow).value
    cannot work

    Could you explain me how can i change the comboBox1.RowSource? the rowSource of ComboBox1 is always the "AA1:AA8" which was the range i defined in the userForm design. Later in my program i need to expand the rowSource...
    Could you enlighten?

    Thx

  2. #2
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Code should work ??

    How have you defined lastusedrow ??


    Ivan

  3. #3
    Guest

    Default

    WorkSheets("Sheet1").Select
    lastUsedRow = Range("AA65536").End(xlUp).Row

    is it correct? lastUsedRow is the last row in column AA that has data.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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