INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Problems with ActiveCell.Row...

Problems with ActiveCell.Row...

(OP)

I have a Sheet of data with a button on it. When I click in a row to identify the row of information I want to use... and then click a button on the worksheet - a Form opens and I transfer the individual cell values that I want to look at onto the form. Everything works, but when I close the form and click another cell and click the button again to launch the form I see the old records. Then I have to close the form and open it again... then the new information comes up. It's like my code hasn't recognized the ActiveCell.Row has changed right away. Is there a way to make it recognize the new ActiveCell.Row before opening the form?

A piece of the code below...

CODE

OFFICEVIEWTRANSfrm.Show
    'transfer data from ActiveRow
    OFFICEVIEWTRANSfrm!MLSNUMBERbox.Value = Sheets("Office View").Range("A" & (ActiveCell.Row)).Value
    OFFICEVIEWTRANSfrm!CLOSEDATEbox.Value = Format(Sheets("Office View").Range("I" & (ActiveCell.Row)).Value, "dd-mmm-yy")
    OFFICEVIEWTRANSfrm!STATUSbox.Value = Sheets("Office View").Range("J" & (ActiveCell.Row)).Value
    OFFICEVIEWTRANSfrm!AGENTNAMEbox.Value = Sheets("Office View").Range("D" & (ActiveCell.Row)).Value 

Thanks in advance,

SnayJ

RE: Problems with ActiveCell.Row...

You need two procedures.

One to open the form in the Button_click event

The second in the userform Activate event that loads the four text boxes.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Problems with ActiveCell.Row...

(OP)
Skip,

Thanks... sorry, I have 2 forums under my forum list and I clicked the wrong one.

As for your suggestion, thanks... I get it... open the form and have the form pull the information on Activate... sounds good. Thanks!


SnayJ

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close