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


I need to also work out which button has been pressed.

set cell = Activesheet.Buttons(1).TopLeftCell

will work once I know what button has been preseed. Is there code that
will give me the ID of the button that has been pressed ?


--
wardides
------------------------------------------------------------------------
wardides's Profile: http://www.excelforum.com/member.php...o&userid=15022
View this thread: http://www.excelforum.com/showthread...hreadid=266858

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Creating Directories

dim myBTN as button
set myBTN = activesheet.buttons(application.caller)
msgbox application.caller & vblf & mybtn.topleftcell.address _
& mybtn.caption

(Not sure what the ID is.)




wardides wrote:

I need to also work out which button has been pressed.

set cell = Activesheet.Buttons(1).TopLeftCell

will work once I know what button has been preseed. Is there code that
will give me the ID of the button that has been pressed ?

--
wardides
------------------------------------------------------------------------
wardides's Profile: http://www.excelforum.com/member.php...o&userid=15022
View this thread: http://www.excelforum.com/showthread...hreadid=266858


--

Dave Peterson

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
creating directories freekrill Excel Discussion (Misc queries) 1 July 25th 05 09:26 AM
Creating Directories wardides[_5_] Excel Programming 0 October 13th 04 02:08 PM
Creating Directories wardides[_4_] Excel Programming 1 October 6th 04 03:48 PM
Creating a list of directories mousetrap Excel Programming 1 July 24th 04 05:22 AM
Creating Directories Keith[_11_] Excel Programming 3 June 23rd 04 12:44 PM


All times are GMT +1. The time now is 01:02 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"