Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2023, 12:51 PM
vivka vivka is offline Remove parenthesis that contain four digits or etal word vba Windows 7 64bit Remove parenthesis that contain four digits or etal word vba Office 2016
Expert
 
Join Date: Jul 2023
Posts: 305
vivka is on a distinguished road
Default

Laith93, I see I have misunderstood your aim: I thought you wanted to delete only four-digit numbers in parentheses and nothing else. So my apologies to Guessed! His code should work properly but unfortnately it doesn't (you are right). I think the following will work:


" \([!\)]@[0-9]{4}*\)"
Reply With Quote
  #2  
Old 10-30-2023, 07:54 PM
laith93 laith93 is offline Remove parenthesis that contain four digits or etal word vba Windows 10 Remove parenthesis that contain four digits or etal word vba Office 2019
Competent Performer
Remove parenthesis that contain four digits or etal word vba
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by vivka View Post
I think the following will work:
" \([!\)]@[0-9]{4}*\)"
Also, it doesn't work properly, the same action as Andrew code.
Thanks
Reply With Quote
  #3  
Old 10-31-2023, 11:38 PM
laith93 laith93 is offline Remove parenthesis that contain four digits or etal word vba Windows 10 Remove parenthesis that contain four digits or etal word vba Office 2019
Competent Performer
Remove parenthesis that contain four digits or etal word vba
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by vivka View Post
I think the following will work:
" \([!\)]@[0-9]{4}*\)"
Thank you so much vivka
It works perfectly now (sorry I miscopied the code)
Best Regards
Reply With Quote
Reply

Tags
find & replace, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove parenthesis that contain four digits or etal word vba How to convert text that is enclosed inside parenthesis in a word document into numbered footnotes? BobT Word 5 07-27-2018 01:17 PM
Remove parenthesis that contain four digits or etal word vba Find and remove right parenthesis and preceding 11 characters kevinbradley57 Excel Programming 11 03-25-2018 08:24 PM
Find and Replace Parenthesis with Itallics Richard Carr Word 1 01-06-2015 06:44 PM
Separate/ Remove digits from a string of Numbers QA_Compliance_Advisor Excel 3 07-23-2014 04:59 AM
Remove parenthesis that contain four digits or etal word vba Problems merging in last 4 digits of an account higher than 16 digits Glynda Mail Merge 1 04-08-2011 12:17 AM

Other Forums: Access Forums

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