Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 09-29-2024, 11:58 PM
macropod's Avatar
macropod macropod is offline VBA Word simple macro to select the current paragraph Windows 10 VBA Word simple macro to select the current paragraph Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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

Quote:
Originally Posted by RobiNew View Post
Your code line doesn't work.
It works for me. You can demonstrate it with something as simple as:
Code:
Sub Test()
MsgBox Selection.Paragraphs(1).Range.LanguageID
Selection.Paragraphs(1).Range.LanguageID = wdBelgianFrench
MsgBox Selection.Paragraphs(1).Range.LanguageID
End Sub
where your initial language is something other than Belgian French.
Quote:
Originally Posted by RobiNew View Post
How would you do the trick with Range?
Without seeing your code, it's impossible to say how it should be revised.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting a tab char at the end of current paragraph RRB Word VBA 5 03-14-2024 01:49 PM
VBA Word simple macro to select the current paragraph 1. Apply to current row. 2. De-select row afterwards. Aengus345 Word VBA 3 02-12-2024 06:28 AM
A macro that moves the current paragraph up or down? New Daddy Word VBA 2 04-13-2014 02:25 PM
VBA Word simple macro to select the current paragraph A simple select for a given math formula Jo-NathanBSChE Excel 1 04-16-2013 03:10 AM
VBA Word simple macro to select the current paragraph How to select the first row of the current table Jennifer Murphy Word VBA 9 01-29-2012 06:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:41 PM.


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