+ Reply to Thread
Results 1 to 2 of 2

Transferring cell data to textboxes

Hybrid View

  1. #1
    Merlin
    Guest

    Transferring cell data to textboxes

    I created a textbox through the Control Toolbox in the Visual Basic toolbar.
    I tried to transfer data from an Excel cell to it by using the following
    commands

    myName = Range("Name")
    ActiveSheet.Shapes("txtOwnerName").Select
    Selection.Characters.Text = myName

    however I get the error "Object doesn't support this porperty or method."
    Is there some other way to get data to it? It works if I create a textbox
    using the Drawing toolbar, but there are limitations with this type of
    textbox.

    Thank-you!
    Merlin

  2. #2
    Tom Ogilvy
    Guest

    Re: Transferring cell data to textboxes

    Activesheet.OleObjects("TxtOwnerName").Object.Value = Range("Name").Value

    or possibly

    Activesheet.TxtOwnerName.Value = Range("Name").Value
    --
    Regards,
    Tom Ogilvy

    "Merlin" <Merlin@discussions.microsoft.com> wrote in message
    news:22FC946C-40EF-4BBB-A5B4-5F99EC22D0AD@microsoft.com...
    > I created a textbox through the Control Toolbox in the Visual Basic

    toolbar.
    > I tried to transfer data from an Excel cell to it by using the following
    > commands
    >
    > myName = Range("Name")
    > ActiveSheet.Shapes("txtOwnerName").Select
    > Selection.Characters.Text = myName
    >
    > however I get the error "Object doesn't support this porperty or method."
    > Is there some other way to get data to it? It works if I create a textbox
    > using the Drawing toolbar, but there are limitations with this type of
    > textbox.
    >
    > Thank-you!
    > Merlin




+ 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