+ Reply to Thread
Results 1 to 3 of 3

Change cell value next to shape location

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    Overpelt
    MS-Off Ver
    2013
    Posts
    3

    Change cell value next to shape location

    Hello everyone,

    I hope someone can help me. I have a column with a round shape in every cell. Now I have written a macro that changes the color of the shape you click on. Now I also want the value of the cell, next to the cell the shape is in, to change value at that same time.

    For example: I click the shape. Shape turns green and cell value next to the shape gets a 1.

    How do I do this?

    Thank you in advance.
    Last edited by dravanderkruk; 07-13-2015 at 07:26 AM. Reason: Solved

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Change cell value next to shape location

    Place this sub in a basic Module:-
    Please Login or Register  to view this content.
    Then select each Shape, Right Click on shape, select "Assign Macro", Macro Dialog box appears, Select code name "Color", selct OK.
    When you the click the Shape , colour changes and also related cell Number.

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    Overpelt
    MS-Off Ver
    2013
    Posts
    3

    Re: Change cell value next to shape location

    Oh I see now if I use the .TopLeftCell.Value and combine it with .Offset(0,1) then I can set a value in a cell.
    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assign macro with parameter to shape based on shape location
    By bobo3127 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 11:18 AM
  2. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  3. Add command button to shape and change shape color on mouseover
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2012, 05:12 PM
  4. trying to change two or more shape's color based on thier location, please advise
    By nimikipod in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2011, 04:01 AM
  5. How Do I change the Shape of the Comment Box to Folded Corner Shape?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-01-2011, 08:17 AM
  6. Shape Name and Location Report - an example
    By aztecbrainsurgeon@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2010, 01:52 PM
  7. Querying shape name and location from VBA
    By Moph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2010, 03:40 AM
  8. How to change shape text without selecting shape
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2009, 06:27 PM

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