+ Reply to Thread
Results 1 to 4 of 4

Paste contents of a random cell to a callout

  1. #1
    Registered User
    Join Date
    03-11-2005
    Posts
    63

    Paste contents of a random cell to a callout

    Hi,

    My VBA is very limited so I hope others with more experience can assist.

    I am looking for a macro that will copy the text-based contents of a random cell in the range B100:B135 to a callout text box. The name of the callout is Autoshape 13. The callout should be cleared before pasting the contents of the next random cell into it. This macro will be assigned to a button.

    Thanks in advance.

    -Upside

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try this macro


    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    03-11-2005
    Posts
    63
    Thanks for your input Mudraker. At first it didn't work (nothing happened) but after glancing through the code I noticed there was a typo on the Autoshape number (you missed the 1 off 13). After I added the 1 it worked great - thanks a lot, I really appreciate it!

    In my quest to become more adept at Vba would you mind explaining what the "b" does in the line above the end with line? I don't see b defined anywhere.
    Last edited by Marie1uk; 11-18-2007 at 07:08 AM.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    When I was testing the code I was using Autoshape number 3

    Sorry about overlooking changing the 3 to 13

    Glad to hear about from that error it works for you

+ 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