Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

How to make Visual Basic read the values in the cell, not the formula

$
0
0

Hi everybody,

I am trying to make Visual Basic read out the Value in a cell and turn an object according to this Value. The problem is that I have it pointing towards a Cell that contains a formula in order to calculate the exact value. Copy of the code:

Private Sub Worksheet_Change(ByVal Target As Range)

ActiveSheet.Shapes.Range(Array("Group 179")).Select
Selection.ShapeRange.Rotation = Range("C2").Value * 240


End Sub

Object 179 is supposed to turn between 0 - 240 degrees based on the value in cell C2, only this one calculates a percentage of completion.


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>