ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro Help (https://www.excelbanter.com/excel-programming/275575-macro-help.html)

Andrea[_3_]

Macro Help
 
I am new to the world of macros, especially in 2000. I
need to have a macro that will open a 2nd spreadsheet, and
copy data from one spreadsheet to the newly opened one,
save and then close the 2nd spreadsheet. The problem I'm
having is I want the information from the first form to
copy to the first available row on the 2nd sheet. I've
heard about "lrow" but I don't know how to use it...

Any help would be greatly appreciated...
Thanks!
Andrea

Jim Rech

Macro Help
 
Whatever "1row" is it is not part of Excel or VB. It looks like a variable
someone created in his code.

Anyway, a typical way to find the next empty cell in a column is something
like this:

Set NextCell = Range("A65536").End(xlUp).Offset(1)

for column A. This assumes the column is not full and there is at least one
entry already there.

--
Jim Rech
Excel MVP




All times are GMT +1. The time now is 06:53 AM.

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