Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-03-2013, 02:47 PM
macropod's Avatar
macropod macropod is offline Conditional tied to trying to find a " " space character Windows 7 32bit Conditional tied to trying to find a " " space character Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,360
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

Try:
Code:
Sub IfSpaceFound()
With Selection.Characters.First
  If .Start = ActiveDocument.Range.Start Then
    .InsertBefore " "
    .MoveStart wdCharacter, 1
  ElseIf .Previous <> " " Then
    .InsertBefore " "
    .MoveStart wdCharacter, 1
  End If
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
the character "v" when typed acts like ctrl-v. jim redfield Word 1 09-22-2012 05:19 AM
Wierd symbols inplace of "space", "indentation" etc aka.bhagvanji Word 5 02-16-2012 11:50 AM
Conditional formatting - "From" - Why does it recognise only names and not emails ghumdinger Outlook 0 09-18-2011 01:28 AM
Conditional tied to trying to find a &quot; &quot; space character The heading doesn't "obey" the "before" space! why? Jamal NUMAN Word 1 07-06-2011 04:25 AM

Other Forums: Access Forums

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