David Nelson Posted July 18, 2012 Posted July 18, 2012 I have been asked to do typists' jobs for them. If they put have a paragraph and have more than one carriage return they want it removed. And if it ends or begins with extra carriage returns they want them removed. I have tried auto-enter please see test file. I also need to remove formatting if they paste bold or other sizes and fonts. It does not work. Is it better to use script trigger? test.zip
Kris M Posted July 18, 2012 Posted July 18, 2012 Substitute ( <data entry field> ; "¶¶" ; "¶" ) will replace two consecutive carriage returns with a single carriage return Trim( <data entry field> ) will remove extra leading or training spaces TextFormatRemove( <data entry field> ; format ) will remove the formating. I would set this as a calculation and replace field contents.
Lee Smith Posted July 18, 2012 Posted July 18, 2012 You can use the Substitute function i.e. Substitute (YourTextField; "¶¶" ; "¶" )
Vaughan Posted July 18, 2012 Posted July 18, 2012 Go to Brian Dunning's custom function site and get Ray Cologon's Trim4() function. Then make an auto-enter calculation: Trim4( TextFormatRemove( self ) ) This will remove all leading and trailing white space and remove all text formatting. 1
David Nelson Posted July 20, 2012 Author Posted July 20, 2012 Thank you Kris and Lee. Yes, that is what I was using in sample file. But if someone had three returns, the substitute would not remove two of them. Vaughan, thank you! You may be 'Mostly Harmless' but you are also a good adviser. And thank you Ray for the custom function.
Recommended Posts
This topic is 4566 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now