POV-Ray : Newsgroups : povray.off-topic : Excel question : Re: Excel question Server Time
3 Sep 2024 11:26:14 EDT (-0400)
  Re: Excel question  
From: bart
Date: 12 Feb 2011 16:19:19
Message: <4d56f957$1@news.povray.org>
On 02/12/2011 06:18 PM, Shay wrote:
> For instance, I want to enter a value into B1 and have the value from A1
> added to it. Any help?
>
You could try to start with something like this VB macro code for 
ThisWorkbook object:

Private Sub Workbook_SheetChange(ByVal Sh As Object, _
         ByVal Source As Range)
    If (Source.Address = "$B$1" _
    And Sh.Name = "Sheet1") Then
      Application.EnableEvents = False
      Source.Value = Source.Value + Cells(1, 1).Value
      Application.EnableEvents = True
    End If
End Sub

Is there a real need for this, why not to use for example
simple formula in extra cell "=B1+A1"?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.