ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Concatenate function with 200 arguments (https://www.excelbanter.com/excel-programming/305129-concatenate-function-200-arguments.html)

Thang

Concatenate function with 200 arguments
 
Hello,

I wish to write a function that can concatenate the
content of 200 or more previous cells.

Many thanks for your help,

Thang

Tom Ogilvy

Concatenate function with 200 arguments
 
dim i as long, sStr as Long
for i = 1 to 2000
sStr = sStr & cells(i,1).Value
Next
debug.print sStr

--
Regards,
Tom Ogilvy

"thang" wrote in message
...
Hello,

I wish to write a function that can concatenate the
content of 200 or more previous cells.

Many thanks for your help,

Thang





All times are GMT +1. The time now is 01:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com