Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2020, 02:55 PM
poetofpiano poetofpiano is offline Check if Cursor is Currently in front of a Footnote Reference Windows 10 Check if Cursor is Currently in front of a Footnote Reference Office 2016
Novice
Check if Cursor is Currently in front of a Footnote Reference
 
Join Date: Sep 2015
Posts: 25
poetofpiano is on a distinguished road
Default Check if Cursor is Currently in front of a Footnote Reference

Hi, I’m writing a script that requires checking if the blinking cursor in the body of the Word doc is current positioned directly in front of a footnote reference (e.g., a superscript that says 1). Any help would be much appreciated!
Reply With Quote
  #2  
Old 10-25-2020, 03:07 PM
gmaxey gmaxey is offline Check if Cursor is Currently in front of a Footnote Reference Windows 10 Check if Cursor is Currently in front of a Footnote Reference Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
Set oRng = Selection.Range
If oRng.Characters.Last.Style = "Footnote Reference" Then Beep
lbl_Exit:
Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 10-25-2020, 04:42 PM
poetofpiano poetofpiano is offline Check if Cursor is Currently in front of a Footnote Reference Windows 10 Check if Cursor is Currently in front of a Footnote Reference Office 2016
Novice
Check if Cursor is Currently in front of a Footnote Reference
 
Join Date: Sep 2015
Posts: 25
poetofpiano is on a distinguished road
Default

Thank you so much!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if Cursor is Currently in front of a Footnote Reference Loop through Footnote Reference Marks Ramses505 Word VBA 6 09-21-2023 12:10 AM
Cursor not showing up when running footnote macro brent chadwick Word VBA 2 04-09-2018 05:42 PM
Check if Cursor is Currently in front of a Footnote Reference How to keep the footnote(endnote) reference numbers when pasting text between two documents? gn4619 Word 4 10-22-2015 08:01 AM
Get footnote reference GLENCOE Word VBA 1 04-07-2015 04:08 AM
Text in front of cursor is being deleted WhatNow Word 2 04-29-2012 06:59 PM

Other Forums: Access Forums

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