作者:MrTkinG | 来源:互联网 | 2023-05-22 16:19
ImworkingonExcelwithVBA.Ineedtocopyandpastesomeinformationfromonerowtoandspecifi
I'm working on Excel with VBA. I need to copy and paste some information from one row to and specific destination. I'm using this code:
我正在使用VBA处理Excel。我需要将一些信息从一行复制并粘贴到特定目的地。我正在使用此代码:
''CUSTOM MESSAGE
Sheets("Extract").Range("AI" & sourceRow & "").Copy Destination :=
Sheets("Print").Range("H" & destRow + 7 & "")
The result of this code is:
这段代码的结果是:
![Actual](https://www.#.com/imgs/1/4/0/3/59/d706420b7b4d1daa553fa932b23f9fe7.jpe)
But I need something like this:
但是我需要这样的东西:
![Needed](https://www.#.com/imgs/3/1/7/3/38/4ddfb6db673c00b9600868792284b249.jpe)
As you can see, I need to change to the next row, before going out of the table. Any idea?
如您所见,我需要在离开桌子之前更改到下一行。任何想法?
2 个解决方案