+ Reply to Thread
Results 1 to 5 of 5

drawing autoshapes according to cell value

  1. #1
    Registered User
    Join Date
    09-08-2006
    Posts
    3

    drawing autoshapes according to cell value

    Is there a way to draw x number of autoshapes according to a cell value? For example if A1 = 2 then the worksheet contains 2 autoshape objects and if I change the value to 5 the page has 5 autoshape objects. I know how I can do it with Macro, but I'd like excel to do it on the fly (formula kind of way), without running the macro everytime the value in A1 changes.

    Or is there a way to start a function automatically everytime the value in cell A1 changes?

  2. #2
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389
    YEs call the procedure from the worksheet_change event


    eg:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-08-2006
    Posts
    2
    Quote Originally Posted by stevebriz
    YEs call the procedure from the worksheet_change event


    eg:
    Please Login or Register  to view this content.

    Steve,

    Is there any way doing this stuff without macro

    Humility

  4. #4
    Registered User
    Join Date
    09-08-2006
    Posts
    3
    Quote Originally Posted by stevebriz
    YEs call the procedure from the worksheet_change event


    eg:
    Please Login or Register  to view this content.
    Thanks for the answer I try that out. I just suspect that won't work for me, let me explain why. I have one excel file full of measurement results and the macro that I use is stored into another excel file. The values are read from the measurement excel file and an extra worksheet is created to that excel file as a conclusion of the measurements. If the macro is not stored in the excel file, can that event macro work? I guess not. Anyhow I'll try it out and let you know if it worked for me.

  5. #5
    Registered User
    Join Date
    09-08-2006
    Posts
    3
    The macro you showed doesn't seem to respond to any evant in A1, not even if I have the macro stored to the sheet where I make the chagnes. Is there some settings I need to change in Excel to allow this to work? Here's my code:

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Address = "$A$1" Then 'Call DrawStars
    MsgBox ("change detected")
    End If

    End Sub

+ 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