Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2021, 06:58 PM
gmaxey gmaxey is offline Macro doesnt work inside textbox Windows 10 Macro doesnt work inside textbox Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Those are ActiveX controls. Why are you using those?


Sub test()
With TextBox1
.MultiLine = True
.Text = Replace(TextBox1.Text, "blue", "Mr." & vbCr & "Adrian Tomc")


End With
With TextBox11
.MultiLine = True
.Text = Replace(TextBox1.Text, "blue", "Mr." & vbCr & "Adrian Tomc")
End With
With TextBox12
.MultiLine = True
.Text = Replace(TextBox1.Text, "blue", "Mr." & vbCr & "Adrian Tomc")
End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro doesnt work inside textbox DocumentBeforePrint doesnt work Gerrit Word VBA 6 02-20-2021 08:53 AM
Macro doesnt work inside textbox Code doesnt work properly ksigcajun Word VBA 6 04-06-2015 07:41 AM
Safe Senders Doesnt work Anil Kaul Outlook 0 11-16-2012 01:28 PM
Macro doesnt work inside textbox Command Button doesnt work on network rmw85 Word VBA 1 04-25-2012 01:02 PM
Macro doesnt work inside textbox My Product code doesnt work!!!! PLEASE HELP dukquaknoobhack Office 1 01-05-2012 03:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:02 AM.


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