+ Reply to Thread
Results 1 to 5 of 5

Copy paste Text Box

  1. #1
    Registered User
    Join Date
    08-23-2007
    Posts
    58

    Copy paste Text Box

    Hello,

    I've created this simple code which copies and pates a textbox.

    Please Login or Register  to view this content.

    My goal was to select a cell, run a macro which copies a textbox and pastes it on the selected cell.

    Currently, the code pastes it in the middle of my worksheet.

    How can this be modified to paste on the cell?


    Thanks for any help.

    ~Jeff

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    Try this:
    Please Login or Register  to view this content.
    Where "A1" is where you want the textbox copied to.

    Or, if you want to loop thru:
    Please Login or Register  to view this content.
    Last edited by Ikaabod; 09-12-2007 at 08:14 PM.

  3. #3
    Registered User
    Join Date
    08-23-2007
    Posts
    58
    Thanks, Ikaabod

    The second code that loops is quite interesting... I can see areas where this can be used.

    .. however, in my situation, It's an interactive process which will vary, so I'll need the position of the texbox to paste on or near the active cell...



    any other ideas?

    thanks


    Jeff

    .

  4. #4
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    You can change the offset to whatever you need. Use zero if you want it in the activecell.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-23-2007
    Posts
    58
    Thanks Ikaabod!

    Your code, interestingly, pastes a "rectangle" object, not a Text Box.
    .. perhaps its a default setting for objects.

    either way it provided me with a workable solution.

    Please Login or Register  to view this content.
    Thanks for the help!

    ~Jeff

+ 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