ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Appending Text (https://www.excelbanter.com/excel-programming/306289-appending-text.html)

John V[_2_]

Appending Text
 
I am opentext files, copying the current region, and now want to append this
text to the bottom of a master worksheet. I imagine I need to locate the
first empty cell beyond the current region to activate and paste.

Any hints how to do that?

Thanks much, John V

PS To all of you regular contributors: thanks for your volunteer assistance.
Just reading all the posts has helped me a lot.

Tom Ogilvy

Appending Text
 
Dim rng as Range
Set rng = worksheets("Master").Cells(rows.count,1).End(xlup) (2)

rng holds a reference to where you want to paste.

--
Regards,
Tom Ogilvy

"John V" wrote in message
...
I am opentext files, copying the current region, and now want to append

this
text to the bottom of a master worksheet. I imagine I need to locate the
first empty cell beyond the current region to activate and paste.

Any hints how to do that?

Thanks much, John V

PS To all of you regular contributors: thanks for your volunteer

assistance.
Just reading all the posts has helped me a lot.




John V[_2_]

Appending Text
 
Thanks Tom. For my education, what does the (2) part do?

"Tom Ogilvy" wrote:

Dim rng as Range
Set rng = worksheets("Master").Cells(rows.count,1).End(xlup) (2)

rng holds a reference to where you want to paste.

--
Regards,
Tom Ogilvy

"John V" wrote in message
...
I am opentext files, copying the current region, and now want to append

this
text to the bottom of a master worksheet. I imagine I need to locate the
first empty cell beyond the current region to activate and paste.

Any hints how to do that?

Thanks much, John V

PS To all of you regular contributors: thanks for your volunteer

assistance.
Just reading all the posts has helped me a lot.





Tom Ogilvy

Appending Text
 
end(xlup) finds the last cell with data. (2) steps down one cell.

--
Regards,
Tom Ogilvy

"John V" wrote in message
...
Thanks Tom. For my education, what does the (2) part do?

"Tom Ogilvy" wrote:

Dim rng as Range
Set rng = worksheets("Master").Cells(rows.count,1).End(xlup) (2)

rng holds a reference to where you want to paste.

--
Regards,
Tom Ogilvy

"John V" wrote in message
...
I am opentext files, copying the current region, and now want to

append
this
text to the bottom of a master worksheet. I imagine I need to locate

the
first empty cell beyond the current region to activate and paste.

Any hints how to do that?

Thanks much, John V

PS To all of you regular contributors: thanks for your volunteer

assistance.
Just reading all the posts has helped me a lot.








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

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