#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"