Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2014, 07:54 PM
kjxavier kjxavier is offline Insert <tab> in a phrase with condition Windows XP Insert <tab> in a phrase with condition Office 2007
Advanced Beginner
Insert <tab> in a phrase with condition
 
Join Date: Jul 2011
Posts: 39
kjxavier is on a distinguished road
Lightbulb Insert <tab> in a phrase with condition

Hi! Good Morning!

MS Office 2007

I have a list of details eg:



Mr.Jesus P Perez 995 656 55 4554 949 4
Ms.KirstenC Marrero E 49 8 4 6 4 67 655 7
Mrs.Faye W Smith 9 69 6F5 74 8675 7 46 6
Mr.Herbert V Johnson 55 6 4 4 674 6 47 4 4787
Mr.Daniel J Thomoson 79A 48F 8 4 7668 8 6

I would like to insert a <tab> after all 4th word which starts with a Capital letter (even if the 5th word starts with Alphabet or Numeric)

Result:

Mr.Jesus P Perez<tab> 995 656 55 4554 949 4
Ms.KirstenC Marrero<tab> E 49 8 4 6 4 67 655 7
Mrs.Faye W Smith<tab> 9 69 6F5 74 8675 7 46 6
Mr.Herbert V Johnson<tab> 55 6 4 4 674 6 47 4 4787
Mr.Daniel J Thomoson<tab> 79A 48F 8 4 7668 8 6

Appreciate your early reply!

Thank you
Reply With Quote
  #2  
Old 08-01-2014, 08:57 PM
macropod's Avatar
macropod macropod is offline Insert &lt;tab&gt; in a phrase with condition Windows 7 32bit Insert &lt;tab&gt; in a phrase with condition Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use a wildcard Find/Replace, where:
Find = ^13[! .]*[ .][! ]@ [! ]@ [A-Z]*^32
Replace = ^&^t
The data you've posted, though, aren't entirely consistent, as there is no space between the first two words and sometimes between what it appears should be the 2nd & 3rd words. the above F/R code will cope with the first issue but there's no fix for the second issue.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
find and replace, find and replace nth, insert tab



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for a phrase in Windows 7 (aargh!) John_G Windows 0 07-30-2014 09:22 AM
Insert &lt;tab&gt; in a phrase with condition Creating a plain text content control for every instance of a word or phrase RobsterCraw Word VBA 16 11-20-2012 03:25 PM
Insert &lt;tab&gt; in a phrase with condition Exclude phrase from email kiwiora Outlook 2 07-16-2012 03:03 PM
Insert &lt;tab&gt; in a phrase with condition How to find exact phrase CabbageTree Outlook 2 05-14-2012 11:24 AM
Insert &lt;tab&gt; in a phrase with condition check with condition karti Word 2 03-15-2011 06:06 AM

Other Forums: Access Forums

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


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