Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2017, 05:12 AM
ilcaa72 ilcaa72 is offline select the sentence at cursor position Windows 7 64bit select the sentence at cursor position Office 2013
Novice
select the sentence at cursor position
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default select the sentence at cursor position

hi, i am have this vba code which i wrong so needed assistance. At the cursor position i just want to select the current sentence. thanks

Code:
Selection.Select unit:=wdSentence, Count:=1

Reply With Quote
  #2  
Old 04-28-2017, 05:28 AM
macropod's Avatar
macropod macropod is offline select the sentence at cursor position Windows 7 64bit select the sentence at cursor position Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Selection.Sentences(1).Select
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-28-2017, 05:40 AM
ilcaa72 ilcaa72 is offline select the sentence at cursor position Windows 7 64bit select the sentence at cursor position Office 2013
Novice
select the sentence at cursor position
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default

thanks. I see some posts have "Solved". How do i mark this as 'solved' (i fear your going to say, "press the 'solved' button")
Reply With Quote
  #4  
Old 04-28-2017, 05:42 AM
macropod's Avatar
macropod macropod is offline select the sentence at cursor position Windows 7 64bit select the sentence at cursor position Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

It's done via the 'Mark this thread as solved' option on the 'Thread Tools' dropdown. Done.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing cursor position anand Word VBA 2 06-19-2015 05:18 AM
Select the whole sentence when a word has been modified gloos Word VBA 1 04-14-2015 10:24 PM
Increase Sentence Font at cursor position ilcaa72 Word VBA 8 02-20-2014 08:40 AM
Displaying cursor position within cell MiamiTom Excel 0 11-18-2011 09:02 AM
Retrieve position of Cursor - x & y positions SDondeti PowerPoint 0 05-19-2011 11:39 AM

Other Forums: Access Forums

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