Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有每年,每季度,每半年的模式类型我需要像当我们按下每年单元格 c3 得到值 12 如果每季度按下 3,每半年 6 请帮助
按钮 QLY 的 Makro
Sub QLY_Click() Range("C3").FormulaR1C1 = "3" End Sub
按钮 HLY 的 Makro
Sub HLY_Click() Range("C3").FormulaR1C1 = "6" End Sub
按钮 YLY 的 Makro
Sub YLY_Click() Range("C3").FormulaR1C1 = "12" End Sub