Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default finding ROW without selecting worksheet

Sheet4.Select
Sheet4.Range("G59").End(xlUp).Offset(1, 0).Select
Dest1 = ActiveCell.Row

Would like to locate the row # without selecting the worksheet or the range.
Is that possible when different worksheet is active?
--
Jim at Eagle
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default finding ROW without selecting worksheet

Hi, Jim,

Without selection, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2)


---
Regards,
Norman


"Jim at Eagle" wrote in message
...
Sheet4.Select
Sheet4.Range("G59").End(xlUp).Offset(1, 0).Select
Dest1 = ActiveCell.Row

Would like to locate the row # without selecting the worksheet or the
range.
Is that possible when different worksheet is active?
--
Jim at Eagle



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default finding ROW without selecting worksheet

Hi Jim,

If, however, the row was your target, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2).EntireR ow


---
Regards,
Norman



"Norman Jones" wrote in message
...
Hi, Jim,

Without selection, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2)


---
Regards,
Norman


"Jim at Eagle" wrote in message
...
Sheet4.Select
Sheet4.Range("G59").End(xlUp).Offset(1, 0).Select
Dest1 = ActiveCell.Row

Would like to locate the row # without selecting the worksheet or the
range.
Is that possible when different worksheet is active?
--
Jim at Eagle





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default finding ROW without selecting worksheet

Taking the uncertainty in the original note a bit further, if "locate the row #"
literally means the number of the row then:

dim LastRow as long
LastRow = range("G59").end(xlup).row

Bill
-------------------------
Norman Jones wrote:
Hi Jim,

If, however, the row was your target, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2).EntireR ow


---
Regards,
Norman



"Norman Jones" wrote in message
...

Hi, Jim,

Without selection, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2)


---
Regards,
Norman


"Jim at Eagle" wrote in message
...

Sheet4.Select
Sheet4.Range("G59").End(xlUp).Offset(1, 0).Select
Dest1 = ActiveCell.Row

Would like to locate the row # without selecting the worksheet or the
range.
Is that possible when different worksheet is active?
--
Jim at Eagle





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default finding ROW without selecting worksheet

Thanks,
LastRow = Sheet4.Range("G59").End(xlUp)(2).Row
I needed the the first empty cell to append new data to.
--
Jim at Eagle


"Bill Martin" wrote:

Taking the uncertainty in the original note a bit further, if "locate the row #"
literally means the number of the row then:

dim LastRow as long
LastRow = range("G59").end(xlup).row

Bill
-------------------------
Norman Jones wrote:
Hi Jim,

If, however, the row was your target, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2).EntireR ow


---
Regards,
Norman



"Norman Jones" wrote in message
...

Hi, Jim,

Without selection, try:

Dim rng As Range

Set rng = Sheets("Sheet4").Range("G59").End(xlUp)(2)


---
Regards,
Norman


"Jim at Eagle" wrote in message
...

Sheet4.Select
Sheet4.Range("G59").End(xlUp).Offset(1, 0).Select
Dest1 = ActiveCell.Row

Would like to locate the row # without selecting the worksheet or the
range.
Is that possible when different worksheet is active?
--
Jim at Eagle







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
Help for Macro: Finding last cell and selecting it [email protected] Excel Discussion (Misc queries) 4 January 29th 07 08:40 AM
selecting a worksheet rocket0612 Excel Worksheet Functions 2 March 1st 06 09:47 AM
Finding a minimum value and selecting the cell containing this val Kokomojo Excel Worksheet Functions 3 February 5th 06 09:33 PM
Finding and Selecting Specific Ranges [email protected] Excel Programming 3 June 29th 05 09:34 PM
selecting cell range in other worksheet without switching to worksheet suzetter[_4_] Excel Programming 4 June 22nd 05 08:55 PM


All times are GMT +1. The time now is 11:55 PM.

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"