+ Reply to Thread
Results 1 to 5 of 5

Copying text from a shape

Hybrid View

  1. #1
    Ken Johnson
    Guest

    Re: Copying text from a shape

    Hi rj,
    So that you don't have any problems caused by the break in the 6th
    line, copy and paste this version...

    Public Sub ShapeCaptionToCell()
    Dim strShpText As String
    Dim rngDestination As Range
    On Error GoTo NOTSHAPE
    strShpText = Application.selection.Caption
    Set rngDestination = Application.InputBox _
    (prompt:="Select the destination cell", _
    Type:=8)
    rngDestination.Value = strShpText
    NOTSHAPE:
    End Sub

    Also, when you select the destination range it can be bigger than one
    cell and can even be a non-contiguous range (selected while holding
    down Ctrl).

    Ken Johnson


  2. #2
    rj
    Guest

    Re: Copying text from a shape

    Thanx Ken


  3. #3
    Ken Johnson
    Guest

    Re: Copying text from a shape

    You're welcome rj.
    Thanks for the feedback.
    Ken Johnson


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1