MuppetReaper
New Member
- Joined
- Jun 14, 2013
- Messages
- 30
bit of a strange one here!
I have a sheet that has some custom functions to calculate the total height and width of a range, but it does't recalc automatically if you adjust the size of the row/column.
So I added code to each sheet to recalc when a cell is clicked -
but this seems to stop the user being able to use copy and paste on the sheet, as it seems to clear the clipboard when the new cell is selected.
So, I've had to add a couple of buttons to turn this on and off
But is there any other way around this? it seems daft to have to do this
thanks
I have a sheet that has some custom functions to calculate the total height and width of a range, but it does't recalc automatically if you adjust the size of the row/column.
So I added code to each sheet to recalc when a cell is clicked -
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Calculate
End Sub
So, I've had to add a couple of buttons to turn this on and off
Code:
Sub UpdatesOff()
Application.EnableEvents = False
End Sub
Sub UpdatesOn()
Application.EnableEvents = True
End Sub
But is there any other way around this? it seems daft to have to do this
thanks