#1   Report Post  
traineeross
 
Posts: n/a
Default Macros in excel 2000

I have a macro which i need to use on different spreadsheets where the data
is of various lengths.

I need to get the macro to go to one cell below the last active cell in a
column.

I have made the macro work for the first sheet where there are 1101 rows.
This is what the part of the macro looks like, i need the cell values
replaced with the code to go to the last active cell in row I and J and then
move down one-

Range("I1102").Value = "Over Two Days"
Range("I1103").Value = "Under Two Days"
Range("J1102").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-1]C,""3"")"
Range("J1103").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-2]C,""<=3"")"

Look forward to the replies.

My thanks in advance Jody Williams
  #2   Report Post  
bigwheel
 
Posts: n/a
Default

Range("A65536").End(xlUp).Offset(1, 0).Select


"traineeross" wrote:

I have a macro which i need to use on different spreadsheets where the data
is of various lengths.

I need to get the macro to go to one cell below the last active cell in a
column.

I have made the macro work for the first sheet where there are 1101 rows.
This is what the part of the macro looks like, i need the cell values
replaced with the code to go to the last active cell in row I and J and then
move down one-

Range("I1102").Value = "Over Two Days"
Range("I1103").Value = "Under Two Days"
Range("J1102").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-1]C,""3"")"
Range("J1103").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-2]C,""<=3"")"

Look forward to the replies.

My thanks in advance Jody Williams

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

I showed you that previously


iLastRow = Cells(Rows.Count, "F").End(xlUp).Row


or any other column

--

HTH

RP
(remove nothere from the email address if mailing direct)


"traineeross" wrote in message
...
I have a macro which i need to use on different spreadsheets where the

data
is of various lengths.

I need to get the macro to go to one cell below the last active cell in a
column.

I have made the macro work for the first sheet where there are 1101 rows.
This is what the part of the macro looks like, i need the cell values
replaced with the code to go to the last active cell in row I and J and

then
move down one-

Range("I1102").Value = "Over Two Days"
Range("I1103").Value = "Under Two Days"
Range("J1102").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-1]C,""3"")"
Range("J1103").FormulaR1C1 = "=COUNTIF(R[-" & iLastRow - 1 & _
"C:R[-2]C,""<=3"")"

Look forward to the replies.

My thanks in advance Jody Williams



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
Hyperlink in Excel 2000 can't open bookmarked Word 2000 file DCheslock Excel Discussion (Misc queries) 1 May 5th 05 10:46 PM
Excel XP 2002 Vs. Excel 2000 Samantha Excel Discussion (Misc queries) 0 April 18th 05 03:54 PM
other systems detecting excel 4.0 if excel 2000 is installed Tristan_Flynn Setting up and Configuration of Excel 0 January 18th 05 06:55 PM
How do I Break links Using Excel 2000 DaddyMan Excel Discussion (Misc queries) 1 December 9th 04 10:18 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 11:21 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"