Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2020, 01:55 PM
gmaxey gmaxey is offline Returning to the pane (and maybe point) that the cursor was when the macro started Windows 10 Returning to the pane (and maybe point) that the cursor was when the macro started Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Do you mean something like this Charles:


Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oStyle As Style
  For Each oStyle In ActiveDocument.Styles
    On Error Resume Next
    oStyle.Font.Name = "Times New Roman"
  Next oStyle
lbl_Exit:
  Exit Sub
End Sub



There probably aren't that many more Word users that knows what a style is, than
knows how to map a CC
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Tags
pane view variable



Similar Threads
Thread Thread Starter Forum Replies Last Post
excel macro returning the wrong value anne.kiss@ntlworld.com Excel Programming 7 03-14-2019 05:53 AM
OneNote Undo: Insertion point/cursor "jumps" when typing Ctrl+Z aspiringgeek OneNote 0 03-21-2017 07:23 PM
Returning to the pane (and maybe point) that the cursor was when the macro started Cursor location on first click -- insertion point stevec5088 Word 1 12-14-2016 02:45 PM
Returning to the pane (and maybe point) that the cursor was when the macro started Cursor in reading pane Danny DeLoach Outlook 2 08-16-2011 11:58 AM
A macro to mirror the movement of the cursor ACA Word VBA 0 08-24-2010 03:21 PM

Other Forums: Access Forums

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