OVH Cloud OVH Cloud

VBA

2 réponses
Avatar
missk1902
Hi ,

Pls help with the below VBA query. I have two columns (A & B) in excel

A B
XXXX 111
111
111
YYYY 222
222
222
ZZZZ 333
333
333

I need to write a macro that will copy XXXX until it reaches YYYY, copy
YYYY unit it reaches ZZZZ and so on.

2 réponses

Avatar
banjo
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.excel.programming&lang=en&cr=US


Hi ,

Pls help with the below VBA query. I have two columns (A & B) in excel

A B
XXXX 111
111
111
YYYY 222
222
222
ZZZZ 333
333
333

I need to write a macro that will copy XXXX until it reaches YYYY, copy
YYYY unit it reaches ZZZZ and so on.




Avatar
JB
[B1].CurrentRegion.SpecialCells(xlCellTypeBlanks).FormulaR1C1 =
"=R[-1]C"
Range("A1", [A1].End(xlDown)).Value = Range("A1",
[A1].End(xlDown)).Value

Cordialy JB



Hi ,

Pls help with the below VBA query. I have two columns (A & B) in excel

A B
XXXX 111
111
111
YYYY 222
222
222
ZZZZ 333
333
333

I need to write a macro that will copy XXXX until it reaches YYYY, copy
YYYY unit it reaches ZZZZ and so on.