Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8894011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:23:27+00:00 2026-06-14T23:23:27+00:00

I need to fire an sub or a command when a user is done

  • 0

I need to fire an sub or a command when a user is done using a text box in Excel.

I have tried using the AfterUpdate() event and the LoseFocus() event like this:

Public Sub Kommentar_AfterUpdate()

MsgBox ("Hurray")

End Sub

The text box is named Kommentar and is inside the sheet Radio. Also, where is the code supposed to be written? i have tried placing it in code sheet for the Radio sheet, and in a separate module.

Any tip, hint or answer is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:23:28+00:00Added an answer on June 14, 2026 at 11:23 pm

    For embedded ActiveX Excel control – add the following in the sheet mobile in VBA. TextBox1 is the name of the control:

    Private Sub TextBox1_LostFocus()
    
    
    End Sub
    

    For userform – use the following where Textbox1 is the name of your textbox:

    Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    
    
    End Sub
    

    You can set the Cancel bool to True if you do not want to lose focus from the textbox. In addition the code is placed within the UserForm >> Right Click >> View Code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ListBox with databinding. I need to fire an event when a
I need to fire asp.net (link button or Button) click event(server side code) using
I have an event on a page that I need to fire from a
I need to fire an event by pressing CTRL + S . I tried
I need to fire an event when the user picks something from a selectManyMenu
I have 2 places a user can click and both need to fire off
I have a Button and I need to fire it's Click event externally from
I need to fire a hash change event more than once per tick. My
I have an application where I need to fire a notification on certain days
I need to fire a one time only custom event that functions like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.