Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling Macro by different TextBoxes


Hello,
I have set of textboxes (msoTextBox, Shape.Type = 17), each of the
assigned to the same macro. I need to know, which of textboxes calle
the macro, then use .TextFrame.Characters.Text as parameter for thi
macro.
Can you help me?
Maybe it isn't clear, but I have problem with my English to explain i
better.

Thanks,
Jarek, Czech Republi

--
Jare
-----------------------------------------------------------------------
Jarek's Profile: http://www.excelforum.com/member.php...info&userid=96
View this thread: http://www.excelforum.com/showthread.php?threadid=26830

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Calling Macro by different TextBoxes

Jarek,

I think this will do it:

MsgBox
Worksheets("Sheet1").Shapes(Application.Caller).Te xtFrame.Characters.Text

By the way, your question was very clear (and your English is much better
than my Czech)!

Doug Glancy

"Jarek" wrote in message
...

Hello,
I have set of textboxes (msoTextBox, Shape.Type = 17), each of them
assigned to the same macro. I need to know, which of textboxes called
the macro, then use .TextFrame.Characters.Text as parameter for this
macro.
Can you help me?
Maybe it isn't clear, but I have problem with my English to explain it
better.

Thanks,
Jarek, Czech Republic


--
Jarek
------------------------------------------------------------------------
Jarek's Profile:

http://www.excelforum.com/member.php...nfo&userid=965
View this thread: http://www.excelforum.com/showthread...hreadid=268307



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
calling Word from an .xlm macro: how to? [email protected] Excel Programming 1 October 10th 04 06:15 AM
problem when drawing textboxes in excel using macro Chris Lannoo Excel Programming 0 June 23rd 04 12:55 PM
Calling a macro from an IF statement frank Excel Programming 1 June 4th 04 12:54 PM
Calling a .Net Procedure from a Macro Scott Eguires Excel Programming 0 December 10th 03 10:35 PM
Calling macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM


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