'请帮助我使用输入功能自动执行下面的代码,这样我就可以在输入框中键入数字,以自动填充所需的行。'
sub DAY()
GENERAL Macro
ActiveCell.Value = "DAY"
Select Case ActiveCell.Value
Case "DAY"
ActiveCell.Resize(, 1).Value = "DAY"
ActiveCell.Offset(, 1).Value = "OFF"
ActiveCell.Offset(, 2).Value = "DAY"
ActiveCell.Offset(, 3).Value = "OFF"
ActiveCell.Offset(, 4).Value = "DAY"
ActiveCell.Offset(, 5).Value = "OFF"
ActiveCell.Offset(, 6).Value = "DAY"
ActiveCell.Offset(, 7).Value = "OFF"
ActiveCell.Offset(, 8).Value = "DAY"
ActiveCell.Offset(, 9).Value = "OFF"
ActiveCell.Offset(, 10).Value = "DAY"
ActiveCell.Offset(, 11).Value = "OFF"
ActiveCell.Offset(, 12).Value = "DAY"
ActiveCell.Offset(, 13).Value = "OFF"
End Select
End Sub
'请帮助我使用输入功能自动执行下面的代码,这样我就可以在输入框中键入数字,以自动填充所需的行。'
2条答案
按热度按时间0h4hbjxa1#
我想你可能想要这样的东西?
yk9xbfzb2#
你可以用公式