Consulting

Results 1 to 3 of 3

Thread: Solved: Display results from a formula into a form

  1. #1
    VBAX Tutor
    Joined
    Oct 2007
    Posts
    210
    Location

    Solved: Display results from a formula into a form

    the form displays a row from a sheet (like an access record form). On the bottom I have buttons that go to the next and previous rows. I would like to have a "row of rows" display (ex. 1 of 200). Please help.
    "The amount of stupid people in the world is God's way of punishing the smart people" - protean_being

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    To get the total rows

    [vba]

    TotalRows = Application.Counta(Worksheets(1).Columns(1))
    [/vba]

    To display it

    [vba]

    Label1.Caption = "Row " & ThisRow & " of " & NumRows
    [/vba]
    ____________________________________________
    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
    VBAX Tutor
    Joined
    Oct 2007
    Posts
    210
    Location
    Thanks! That was so easy I kinda feel stupid....
    "The amount of stupid people in the world is God's way of punishing the smart people" - protean_being

Posting Permissions

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