Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding button dynamically

Here is what I am trying to do...
I have a button on a worksheet that onclick, takes data from that
worksheet and adds it into a dynamically created row on another
worksheet. What I want to do along with this is dynamically add a
"Delete" button at the end of this generated row so that the user may
delete the entire row, data and all, if they want.

Since this is dynamic, I don't have exact placement for the button,
just the last cell on the row that was created. Any help would be
greatly appreciated!!!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default Adding button dynamically

Cells have a Left and Top property that will give you its location in the
worksheet, as if it were a control on a form.

Try
?"Top: "; Range("B2").Top;", Left: ";: ?Range("B2").Left
in the Immediate Window, for example.

--
Bob Kilmer


"lagodch" wrote in message
...
Here is what I am trying to do...
I have a button on a worksheet that onclick, takes data from that
worksheet and adds it into a dynamically created row on another
worksheet. What I want to do along with this is dynamically add a
"Delete" button at the end of this generated row so that the user may
delete the entire row, data and all, if they want.

Since this is dynamic, I don't have exact placement for the button,
just the last cell on the row that was created. Any help would be
greatly appreciated!!!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



Reply
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
Dynamically Adding Textbox To Frame sarndt Excel Worksheet Functions 0 March 15th 10 06:19 PM
Adding values in first "X" number of rows dynamically MattyP Excel Worksheet Functions 3 April 15th 09 06:13 PM
Issue with the Camera Button for creating dynamically updating pic Niceaction Excel Discussion (Misc queries) 0 December 3rd 08 03:56 PM
Dynamically Adding Code to Buttons on an existing UserForm Peter Street Excel Programming 2 September 29th 03 09:54 AM
Adding a webBrowser object dynamically to a sheet kena Excel Programming 0 August 5th 03 01:10 AM


All times are GMT +1. The time now is 11:21 PM.

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

About Us

"It's about Microsoft Excel"