Hi - I want to set the min and max values of the X axis on an Excel chart based upon data entered into two cells. This is the code I wrote:
The problem is that the code seems to do... nothing. I have named the two charts RLCMagnitude and RLCPhase. The lower and upper bounds are in E4 and F4. Any ideas?
I should mention that the only reason I want to do this is that Excel isn't automatically choosing sensible lower bounds for my plot. My x scale is logarithmic and it always has the minimum bound set to 1, no matter what the smallest value being displayed is. It does seem to intelligently set the upper bound. Strange.
One last question - is there a better way to do the "If Target.Address = "$E$4" Or Target.Address = "$F$4" Then" line for if you want to check if the selected cell is included in a large range of cells (ie anything between rows columns E and Z and rows 4 and 6) ie something like "if Target.address exists in [E4-Z6] then". Hopefully that made sense.
Thanks!
Bookmarks