+ Reply to Thread
Results 1 to 7 of 7

show changing activecell value in floating userform

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    34

    show changing activecell value in floating userform

    I have a floating userform showing various statistical information as the user clicks on different cells. To have the userform working and changing, how can I link the changing cell ref into the userform so each change to the cell triggers a recalculation of the data displayed on the userform?
    Last edited by tenk283; 09-26-2010 at 01:48 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Operational Floating Userform

    Dude,
    Place this in the workbook module
    Please Login or Register  to view this content.
    and this in a module
    Please Login or Register  to view this content.
    assumption that you have userform1 with textbox1 on it
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Operational Floating Userform

    Dude,
    can you please change the thread title to somthing like "show activecell value in userform"

  4. #4
    Registered User
    Join Date
    09-01-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Operational Floating Userform

    Quote Originally Posted by pike View Post
    Dude,
    can you please change the thread title to somthing like "show activecell value in userform"
    Title Changed and Solved added.

    Thanks again Pike. Another perfect solution.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: show changing activecell value in floating userform

    no problems Thanks for taking the time to comply and mark post solved .

  6. #6
    Registered User
    Join Date
    09-01-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: show changing activecell value in floating userform

    Quote Originally Posted by pike View Post
    no problems Thanks for taking the time to comply and mark post solved .
    Whoooo!!! Brownie points!

    Please Login or Register  to view this content.
    I do have a question though.

    How does the above code pick up a change in the worksheet?

    Is it the sub title "SheetSelectionChange" that Excel picks up on?

    Also, the ByVal statements, what do they do? Can you point me to some info on the matter?

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: show changing activecell value in floating userform

    hi tenk283
    because its in the workbook module
    It Occurs when the selection of a cell changes on any worksheet
    (you could put it in just worksheet module )the target is the new selected range.
    and the by value is the where the value is stored and will stay the same in the procedure
    as apposed to by ref which changes
    the best place to learn is in the vba help files they have heaps of good explinations and examples

+ 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