Consulting

Results 1 to 3 of 3

Thread: Buttons thats copy the Caption in a cell

  1. #1

    Buttons thats copy the Caption in a cell

    hi (sorry about de Bad english)
    Please, im trying create a macro that copy a caption off the button and paste in a cell
    *** But the same macro runs with every buttons (with any button name)

    Explain Again: The Macro tha run with a many buttons. When i click it, the caption wil copy in a cell.

    Thanks a lot...

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Assign this macro to all buttons

    [vba]

    Public Sub ButtonCaption()

    ActiveCell.Value = ActiveSheet.Shapes(Application.Caller).TextFrame.Characters.Text
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hey.
    Many thanks..
    Sorry about the simple doubt..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •