Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-30-2020, 02:43 AM
alex100 alex100 is offline Multiple conditional operators with Find/Execute & move cursor at the end of a range Windows 7 64bit Multiple conditional operators with Find/Execute & move cursor at the end of a range Office 2016
Advanced Beginner
Multiple conditional operators with Find/Execute & move cursor at the end of a range
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default

Wonderful, thanks Paul!

As for moving the cursor at the end of a range, I found a solution, although I believe there must be a simpler way to achieve this (like a single instruction). If so, I would love to find out about it! Until then, this is what I'll be using...

Code:
Dim pasted_content As range
Set pasted_content = Selection.range
pasted_content.Paste
With pasted_content
    .Select
    Selection.MoveRight Unit:=wdCharacter, Count:=1
End With
Alex
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple conditional operators with Find/Execute & move cursor at the end of a range One line find execute in this case is possible? eduzs Word VBA 1 05-18-2020 10:52 AM
Execute a Sub OR routine or macro based on multiple user choices from a dropbox VitorH Word VBA 1 03-29-2019 02:48 AM
Multiple conditional operators with Find/Execute & move cursor at the end of a range How to avoid find.execute moving focus and restore exact view after search diracsbracket Word VBA 3 10-30-2016 03:17 AM
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
Multiple conditional operators with Find/Execute & move cursor at the end of a range Find and Execute cksm4 Word VBA 1 10-22-2011 11:36 PM

Other Forums: Access Forums

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