0
我是新手,这是我的第一篇文章。我不得不使用这种代码很多,所以一些指导将非常感激。我不确定如何获得最佳标题/问这个问题,但我想简化Excel VBA中的代码。在对象名称中使用变量
txtItem1.Value = txtItem2.Value
txtItem2.Value = txtItem3.Value
txtItem3.Value = txtItem4.Value
txtItem4.Value = txtItem5.Value
txtItem5.Value = txtItem6.Value
txtItem6.Value = txtItem7.Value
txtItem7.Value = txtItem8.Value
txtItem8.Value = txtItem9.Value
txtItem9.Value = txtItem10.Value
*一旦我有一个更好的理解,我可以更新标题,使其他人更有用。
*我想简化以下*代码 - 你要如何简化呢? [Code Review](http://codereview.stackexchange.com)可能的候选人 –