Shape Alignment (Top,Left,right and Bottom ) Enum

Dossfm0q

Banned User
Joined
Mar 9, 2009
Messages
570
Office Version
  1. 2019
Platform
  1. Windows
Good Day
I Need to know The Top,left, Right and Bottom Enum Library Like (True and False as Boolean)

Thank
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,940
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I Need to know The Top,left, Right and Bottom Enum Library Like (True and False as Boolean)
Your question is not very clear... it sounds like you want to know what the data type is for a shape's Top, Left, Right and Bottom properties. If so, they are all of type Single. If that is not what you were asking for, then you will need to provide a more detailed description for us.
 

Dossfm0q

Banned User
Joined
Mar 9, 2009
Messages
570
Office Version
  1. 2019
Platform
  1. Windows
Thank Mr for respond
I have write enum for Direction
Code:
     Enum MyDirect
        left = 1
        Top = 2
        Right = 3
        bottom = 4

    End Enum

and to get Left or any of my Need
write
Dim Dir as MyDirect but I need this Enum From Excel Library.
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,940
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Thank Mr for respond
I have write enum for Direction
Code:
     Enum MyDirect
        left = 1
        Top = 2
        Right = 3
        bottom = 4
    End Enum

and to get Left or any of my Need
write
Dim Dir as MyDirect but I need this Enum From Excel Library.
I am not sure what alignment you are talking about (TextFrame maybe?), but there are built-in constants for Left, Top, Right and Bottom and they are xlLeft, xlTop, xlRight and xlBottom which are nothing more than the letters xl (lower case XL) followed by the direction name), so you should be able to use those directly instead of creating your own Enum for them (although their values are -4131, -4160, -4152, -4107 respectively, not 1, 2, 3 and 4 like your example Enum).
 

Dossfm0q

Banned User
Joined
Mar 9, 2009
Messages
570
Office Version
  1. 2019
Platform
  1. Windows

ADVERTISEMENT

For Shapes Sir.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,511
Messages
5,854,149
Members
431,620
Latest member
imsyun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top