OfficeTips Home || VBA Section || General Section || Download Section || Privacy Policy |
Programmatically offsetting Microsoft Graph data labels |
|
How often have you encountered this - you need to nudge the data label just that little bit left or top or down and you do it manually and all hell breaks loose? It's a lot easier doing it programmatically. This little snippet just shows you how easy it really is to nudge the data label and get the position just right. '
-------------------------------------------------------------------------------- Sub OffsetDataPoints() |
|
If the selection type is text, then the ActiveWindow.Selection.TextRange.Start property returns the current position at which the selection begins within the parent text range. In this snippet we try to determine within which paragraph in the text range does the cursor selection begin. '
--------------------------------------------------------------------------------
Sub CurrentTextSelectionParaPosition() This snippet looks with a table and returns the paragraph within which the current selection is located and the cell information Sub CurrentTextParaPositionWithinTable()
|
Copyright 1999-2022 (c) Shyam Pillai. All rights reserved.