[英]Solution on a specific Excel-VBA code is needed
Below text has to be seen with the picture attached.下面的文字必须与所附的图片一起看到。
The part i need to get help with the regarding the VBA code.
I would like to be able to write a New comment under sheet1
and then press the button "load new comments" ,What should happen when pressing the button:我希望能够在sheet1
下写一个新评论,然后按下按钮“加载新评论”,按下按钮时会发生什么:
If any new comments copy the information (new comment and Workorder) to sheet2 in first "free row" (Workorder under workorder and New comments to comments)如果有任何新评论将信息(新评论和工作订单)复制到第一个“空闲行”(工作订单下的工作订单和评论的新评论)中的 sheet2
Sort Sheet2.Column.Number
with highest number first. Sort Sheet2.Column.Number
以最高的数字Sort Sheet2.Column.Number
。
Then Clear Sheet1.column
"New Comments"然后清除Sheet1.column
“新评论”
I'm not sure if you are aware of this, but everything which can be written in a VBA macro, can also be recorded.我不确定您是否知道这一点,但是可以用 VBA 宏编写的所有内容也都可以记录。 I'm advising you to record a macro while you are manually adding your comments, and see in the VBA editor what the recorded macro looks like.我建议您在手动添加注释时录制一个宏,然后在 VBA 编辑器中查看录制的宏是什么样的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.