LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 224
Default Placing button at cell's location

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
placing PDF logo on a button Spike Excel Programming 2 February 2nd 07 01:10 PM
How to find a cell's location/index within a range? [email protected] Excel Programming 2 January 25th 07 01:50 PM
placing a button directly in a sheet kemel Excel Discussion (Misc queries) 1 August 1st 06 03:25 PM
Placing action on a button!! loopoo[_4_] Excel Programming 2 November 18th 05 12:54 PM
placing a pull-down menu at a cell location automatically Ken Nysse Excel Programming 4 October 4th 03 06:51 PM


All times are GMT +1. The time now is 05:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"