R
rgarber50
Hi
I have a simple to do list with a cell that i am using to take notes
I'm trying to use the following macro to toggle autofit on and off fo
a particular cell. I have assigned the macro to a shape on th
worksheet. Problem is I often have to click the shape multiple times i
order for the macro to run. Any ideas why the following macro isn'
working? - I think it must have something to do with my using a shap
on the wks because the macro works fine when I run it from the vb
editor.
Sub RowAutoFit()
Dim StandardHeight
StandardHeight = 29
If Not Selection.RowHeight = StandardHeight Then
Selection.RowHeight = StandardHeight
Else
Selection.Rows.AutoFit
End If
End Sub
Thanks
Richar
I have a simple to do list with a cell that i am using to take notes
I'm trying to use the following macro to toggle autofit on and off fo
a particular cell. I have assigned the macro to a shape on th
worksheet. Problem is I often have to click the shape multiple times i
order for the macro to run. Any ideas why the following macro isn'
working? - I think it must have something to do with my using a shap
on the wks because the macro works fine when I run it from the vb
editor.
Sub RowAutoFit()
Dim StandardHeight
StandardHeight = 29
If Not Selection.RowHeight = StandardHeight Then
Selection.RowHeight = StandardHeight
Else
Selection.Rows.AutoFit
End If
End Sub
Thanks
Richar