+ Reply to Thread
Results 1 to 2 of 2

View values; ignore header database

  1. #1
    Gert-Jan
    Guest

    View values; ignore header database

    In a database (Sheet3) I have values in some columns. In row 1 there are
    headers. I created a userform to view al the values. How should the userform
    ignore the first line; the headers are not very interesting...

    Private Sub ComboBox1_Change()
    If Range("Sheet3!A2") = "" Then
    Exit Sub
    Else
    Sheets("Sheet3").Select
    Dim i As Long 'Index
    i = ComboBox1.ListIndex + 1
    vrijwap = Cells(i, 5).Value
    ....
    ....
    volgende.Enabled = i < ComboBox1.ListCount
    vorige.Enabled = i > 1



  2. #2
    Gert-Jan
    Guest

    Re: View values; ignore header database

    Problem solved:

    > Private Sub ComboBox1_Change()
    > If Range("Sheet3!A2") = "" Then
    > Exit Sub
    > Else
    > Sheets("Sheet3").Select
    > Dim i As Long 'Index
    > i = ComboBox1.ListIndex + 1
    > vrijwap = Cells(i +1, 5).Value



    "Gert-Jan" <[email protected]> schreef in bericht
    news:[email protected]...
    > In a database (Sheet3) I have values in some columns. In row 1 there are
    > headers. I created a userform to view al the values. How should the
    > userform ignore the first line; the headers are not very interesting...
    >
    > Private Sub ComboBox1_Change()
    > If Range("Sheet3!A2") = "" Then
    > Exit Sub
    > Else
    > Sheets("Sheet3").Select
    > Dim i As Long 'Index
    > i = ComboBox1.ListIndex + 1
    > vrijwap = Cells(i, 5).Value
    > ...
    > ...
    > volgende.Enabled = i < ComboBox1.ListCount
    > vorige.Enabled = i > 1
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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