+ Reply to Thread
Results 1 to 6 of 6

Userforms

  1. #1
    Forum Contributor
    Join Date
    12-16-2004
    Posts
    125

    Userforms

    I have a userform with serveral buttons that input data into different rows of a spreadsheet. Each button basically adds a number to the next cell in a row. What I want to do now is have the userform display how many numbers are in a specific row (Example - how many numbers are in C3:G3). Is it possible to put a textbox in a userform that counts a range of cells?

    Thanks for any help.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    If you link your textbox to a cell, for example H1, you can certainly do this. In H1, just type =counta(c1:g1)

    Whenever data is entered into any of those cells, the value in the textbox will then change.

  3. #3
    Forum Contributor
    Join Date
    12-16-2004
    Posts
    125
    How do I put the textbox in the userform?

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Using the menus: View -->Toolbars --> Control Toolbox, then selecting the Textbox icon. You can then 'draw' your textbox anywhere on the form and then right-click it and choose Properties to set it's LinkedCell attribute.

  5. #5
    Forum Contributor
    Join Date
    12-16-2004
    Posts
    125
    Thanks a bunch pjoaquin. It turned out to be easier than I thought. Your idea worked great.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Thanks, glad I could help.

+ 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