Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2015, 07:40 AM
NobodysPerfect NobodysPerfect is offline Set Focus on ActiveX Text Box after Validation Windows 8 Set Focus on ActiveX Text Box after Validation Office 2010 32bit
Competent Performer
Set Focus on ActiveX Text Box after Validation
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default Set Focus on ActiveX Text Box after Validation

Hi to all.

I have to validate an ActiveX text box (no problem), but as the text box is obligatory the focus shall be (re)set to the text box if empty (problem).

Using the '_LostFocus' event in Excel the single line …
Code:
If Me.TextBox1.Value = "" Then Me.TextBox1.Activate
… does the job.

In Word the code is executed, but the focus doesn't change all. Whatever object will be selected to 'lose focus' it remains selected.

Any idea which code line(s) might (re)set the focus.

Thanks for your help
NP
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Focus on ActiveX Text Box after Validation Word Loses Focus G&G Danny Word 2 03-11-2014 02:17 AM
validation email address in word text filed sameerahmad_P Word VBA 1 03-07-2014 02:59 PM
activex command buttons and text boxes TRG Word 0 02-03-2012 09:18 AM
Need help with placeholder text in ActiveX controls in Word mhellerstein Office 0 11-02-2011 12:31 PM
Help with forms (shifting focus) jrh312 Word 0 11-19-2009 12:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft