Hi,
I am working with very large spreadsheet( 20000 and more rows) and I am trying to optimize some copy -paste operations. I need to put a formula in cell H4 that is "=CONCATENATE(B4," / ",D4)"-to join cells b4 and d4 together separted by "/", paste it to cell H5 as paste-value and copy cells H4:H6 (cell h6 is blank) and paste it down until the end of the rows.I can do it in the spreadsheet itself, but it so hard and time comsuming and prone for mistake so I have to redo it over and over due to large nimber or rows .The below the code that I am using , the probelm the first part is woking , but the secong part when the code suposted to paste H4-H6 down is not working.
Will be very greatfull for any advice.
Thank you ,
The Best Regards,
BorisGomel
Range("H4").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-6],"" / "",RC[-4])"
Range("H4").Select
Selection.Copy
Range("H5").Select
ActiveSheet.Paste
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("H4:H6").Select
Selection.Copy
Range("H7:H25000").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
I am working with very large spreadsheet( 20000 and more rows) and I am trying to optimize some copy -paste operations. I need to put a formula in cell H4 that is "=CONCATENATE(B4," / ",D4)"-to join cells b4 and d4 together separted by "/", paste it to cell H5 as paste-value and copy cells H4:H6 (cell h6 is blank) and paste it down until the end of the rows.I can do it in the spreadsheet itself, but it so hard and time comsuming and prone for mistake so I have to redo it over and over due to large nimber or rows .The below the code that I am using , the probelm the first part is woking , but the secong part when the code suposted to paste H4-H6 down is not working.
Will be very greatfull for any advice.
Thank you ,
The Best Regards,
BorisGomel
Range("H4").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-6],"" / "",RC[-4])"
Range("H4").Select
Selection.Copy
Range("H5").Select
ActiveSheet.Paste
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("H4:H6").Select
Selection.Copy
Range("H7:H25000").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False