Consulting

Results 1 to 4 of 4

Thread: Unable to use formula in Shapes

  1. #1

    Unable to use formula in Shapes

    I created a basic shape in excel.I first used a formula =map!a1 and hot reference of the cell.Now I tried using =text(a1,"mm-dd-yy") and got error.I was not able to view it because it came and flashed away.Different new file same issuesCan we use any formula in shapes like we use in cell?

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    Quote Originally Posted by Svmaxcel View Post
    I created a basic shape in excel.I first used a formula =map!a1 and hot reference of the cell.Now I tried using =text(a1,"mm-dd-yy") and got error.I was not able to view it because it came and flashed away.Different new file same issuesCan we use any formula in shapes like we use in cell?

    I usually put the results of the formula (=TEXT(A1,"mm-dd-yy")) that uses the cell (A1 in your example) in a cell that will be covered by the shape (E9 in the attachment)

    The shape formula can (I believe) only reference a basic cell address, so the shape formula would be =E9
    Attached Files Attached Files
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    You can use a named formula but you have to initially set the name up to just refer to a range, and then alter it after it has been assigned to the shape.
    Be as you wish to seem

  4. #4
    VBAX Regular
    Joined
    Jul 2017
    Posts
    29
    Location
    You may change the formatting of the cell (map!a1) you are referring in shape.
    Go to format cells (Ctrl+1) while map!a1 is selected.
    then custom format and put "
    mm-dd-yy".


Posting Permissions

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