Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default How do you get a row number is a Cell?

I'm searching the active Worksheet for a value and when found I want to
scroll to the row the value was found on as the ActiveWindow.ScrollRow.

Assuming the value was found in Range("A" & j + 5) how would I scroll to it?

This did not work...
ActiveWindow.ScrollRow = ActiveWindow.Range("A" & j + 5).Row



  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default How do you get a row number is a Cell?

ActiveWindow.ScrollRow = j+5

"CRayF" wrote:

I'm searching the active Worksheet for a value and when found I want to
scroll to the row the value was found on as the ActiveWindow.ScrollRow.

Assuming the value was found in Range("A" & j + 5) how would I scroll to it?

This did not work...
ActiveWindow.ScrollRow = ActiveWindow.Range("A" & j + 5).Row



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default How do you get a row number is a Cell?

thanks

"JMB" wrote:

ActiveWindow.ScrollRow = j+5

"CRayF" wrote:

I'm searching the active Worksheet for a value and when found I want to
scroll to the row the value was found on as the ActiveWindow.ScrollRow.

Assuming the value was found in Range("A" & j + 5) how would I scroll to it?

This did not work...
ActiveWindow.ScrollRow = ActiveWindow.Range("A" & j + 5).Row



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How do you get a row number is a Cell?

don't know what your value of j is, but i set it to 2 and it scrolls to a7


Sub rr()
Dim j As Integer
j = 2
ActiveWindow.ScrollRow = Range("A" & j + 5).Row
End Sub

--


Gary


"CRayF" wrote in message
...
I'm searching the active Worksheet for a value and when found I want to
scroll to the row the value was found on as the ActiveWindow.ScrollRow.

Assuming the value was found in Range("A" & j + 5) how would I scroll to
it?

This did not work...
ActiveWindow.ScrollRow = ActiveWindow.Range("A" & j + 5).Row





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
Copying the number of a custom formatted number cell fbvideo Excel Discussion (Misc queries) 2 January 25th 07 11:00 PM
Random cell/number and dont repeat selected cell/number Hector PR Excel Discussion (Misc queries) 0 October 16th 06 05:02 PM
formatting cell number based on previous cell number Pasquini Excel Discussion (Misc queries) 3 June 20th 06 06:36 AM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
Creating a certain number of entries based on a number in a cell PPV Excel Worksheet Functions 4 June 16th 05 10:25 PM


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