LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Finding next empty row

I have a group of spreadsheets in a workbook, which I filter at the end of
each week. What I am now trying to do is to copy that filtered data to
another spreadsheet that I call €śWeekly Totals€ť, all sheets are in one
workbook.

I have create code that will filter each sheet the way I want to see the
information, but when I copy it over to my €śWeekly Totals€ť sheet, this then
is where I am having the problem.

Sheet 1 has four lines of filtered data that is copied by macro to the sheet
€śWeekly Totals€ť, now when I want to copy sheet 2s information, which only
has one line of filtered data in this example, it will erase sheets one data,
and copy sheet two data in the first row. Im starting this copy process to
cell A1

Some of the code that I have tried are the following:

Sub Macro1()
Dim mlastrow as Integer
mlastrow=Cells(Rows.Count,€ťA€ť).End(xlUP).Row + 1
End Sub

Or

Debug.Print Activesheet.Range(€śA65536€ť).End(xlUp).Row + 1

Or

Sub Macro1()
Dim mlastrow as Range
Mlastrow=Cells(Rows.Count,€ťA€ť).End(xlUp).Row
End Sub

Why are the above formulas not working the way I expect them to work?

Walter

 
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
Finding Next empty +1 hellZg8 Excel Programming 5 May 24th 07 11:02 AM
Finding next empty empty cell in a range of columns UncleBun Excel Programming 1 January 13th 06 11:22 PM
Finding the first empty row with VBA Melker Excel Programming 4 October 22nd 04 08:02 PM
Finding last row that is empty poppy Excel Programming 4 July 8th 04 09:49 PM
Finding last non-empty column in row... Mika[_3_] Excel Programming 2 November 11th 03 08:50 PM


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

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

About Us

"It's about Microsoft Excel"