
VBA
代码改好了~ 这个自动调整行高的功能得用
VBA来实现。你可以按 alt+F11 进入
VBA编辑器,然后把下面这段代码粘贴到对应的工作表里:
VBAPrivate Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 2 And Target.Row 8 Then If Target.Value 0 And Target.Value 10 Then Target.RowHeight = Target.Value * .Height + (Target.Value - 1) * .Height End If End IfEnd Sub
保存一下,回去试试看就行啦!有问题再问~