[英]How can i copy one cell data in a column and then paste it untill another value comes in the column through VBA?
The code I used我使用的代码
Sub copypaste()
'
' copypaste Macro
'
'
Range("B2:B8").Select
Application.CutCopyMode = False
Selection.FillDown
Range("B9:B10").Select
Selection.FillDown
Range("B11:B13").Select
Selection.FillDown
End Sub
I have this sheet:我有这张表:
And I want output through VBA code as my actual sheet is very big like this:我想要 output 到 VBA 代码,因为我的实际工作表非常大,如下所示:
Avoid VBA in case you not sure how to use it in the first place.避免 VBA 以防您一开始就不确定如何使用它。 There are many cool build-in features to assist you in a case like yours:
在像您这样的情况下,有许多很酷的内置功能可以帮助您:
B1:B17
B1:B17
Start
> Select Find & Select
> Choose Go To Special
> Choose Blanks
Start
> Select Find & Select
> 选择Go To Special
> 选择Blanks
=B2
and hit key-combo Ctrl + Enter=B2
并按组合键Ctrl + Enter
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.