Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm creating buttons in VBA, trying to place them at a given cell's
location, using the Top and Left properties of the cell. It works well enough near the top of a worksheet, but as I go further and further down the rows, the button is getting placed further and further below the top of the cell. For example, at row 121, the cell's Top property was about 1530, but if I place a button at the top of row 121, that button has a Top property of about 1500, which is between the tops of rows 123 and 124. I've been doing this with the old Forms buttons to enable creating them with parameters, so that all of the buttons call into the same function, but each with a different parameter (that part is working fine). But I tried it with ActiveX buttons too and got the same problem with the button's Top property not being the same as the row or cell's Top property. What do I need to do to place these buttons at the top of a given row? FWIW, I haven't tested whether the same problem exists with the Left property. These buttons are all going into column B, so this isn't really an issue with the horizontal placement. Thanks, Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
placing PDF logo on a button | Excel Programming | |||
How to find a cell's location/index within a range? | Excel Programming | |||
placing a button directly in a sheet | Excel Discussion (Misc queries) | |||
Placing action on a button!! | Excel Programming | |||
placing a pull-down menu at a cell location automatically | Excel Programming |