Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 04-22-2021, 10:00 AM
Steve Kunkel Steve Kunkel is offline Find and Replace not capturing entire line Windows 10 Find and Replace not capturing entire line Office 2019
Advanced Beginner
Find and Replace not capturing entire line
 
Join Date: May 2019
Location: Seattle area
Posts: 81
Steve Kunkel is on a distinguished road
Default

Thanks for moving this to the correct forum. I was able to edit your above find and replace definitions to use the value from my text box. The below code works perfectly and I'm able to simply call my above posted function, which is nice.

Code:
Private Sub cmdLeftPad_Click()
    Call DoFindClean("([ A-Z]@[!^13^l]{1,})", (txtPadding.Value) & "\1", 0, 1)
    Call DoFindClean((txtPadding.Value) & "([ ]@<)", "\1" & (txtPadding.Value), 0, 1)
End Sub
Private Sub cmdRightPad_Click()
    Call DoFindClean("([ A-Z]@[!^13^l]{1,})", "\1" & (txtPadding.Value), 0, 1)
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace not capturing entire line Find and Replace Line Spacing farisca Word 2 06-18-2020 04:02 PM
Find and Replace not capturing entire line Find / Replace hard Carriage Return with Line break. GreenBoy Word 2 03-11-2018 02:32 AM
Find/Replace in a selected cell(s), but across entire workbook ue418 Excel 1 12-21-2017 12:32 AM
Find and Replace not capturing entire line Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
using find/replace on an entire directory? mzimmers Word 0 12-13-2010 12:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:41 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