+ Reply to Thread
Results 1 to 4 of 4

Transfering text from a cell to a shape

  1. #1
    Registered User
    Join Date
    06-28-2007
    Posts
    14

    Transfering text from a cell to a shape

    Hi,

    I am completely confused and I know its probably something very simple I am doing wrong which is why I am asking you guys.

    I am trying to dump some text from a cell into a shape on another sheet and this section of the code doesn't seem to be working:

    Please Login or Register  to view this content.
    When I say it isn't working it is not bugging out on me and having tried to debug the code line by line the code definitely selects the shape (called "CurrentKeyPriorities") and it also picks up the values of all the Variables (Priority1Range e.t.c - by the way the variable type for these variable is 'range'). Where it isn't working is that none of these values are entered into the shape. The other reason I am confused is that I have a practically identical code in another workbook which works fine.

    Any assistance would be very much appreciated.

    Cheers
    Tony
    Last edited by Leith Ross; 11-29-2007 at 12:08 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Tony,

    You were close. Here is how it should be coded...
    Please Login or Register  to view this content.
    I wrapped your code for you this time because you are still new here at the forum. Readability is key in getting a fast response to your question. You have many tools available to assist you in formatting your post. Any code you post, whether a worksheet formula or VBA code should be wrapped. You can find a list of other HTML format options in the forum rules.

    How to Wrap your Code
    On the Message window Toolbar you will see the # icon. Select the text you want to appear in a Code Window, and Click the # icon. This will wrap the code for you. You can also do this manually by placing the tag [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] at the end of the last line.

    You can read the Forum rules by clicking on the link below.
    Forum Rules
    If you have any questions, contact me by clicking on my name Leith Ross

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    06-28-2007
    Posts
    14
    Thank you very much for your response and thanks for having patience with a newby in regards to not wrapping the code.

    I have tried what you said, which works in some code but not with other bits of code. Is there some sort of limit on the number of &'s you can use to concatenate a string, because i have found that sometimes if i break what I am trying to do down into segment it works but if try and pass all the arguments at once it doesn't work.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can link a shape to a cell without VBA.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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