Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Make selected row visible to user when out of screen view

I run a macro to look for a value in a cell. When it is found I exit the
routine and select the entire row of the active cell for the user to see.
However, sometimes the row itself is beyond the view of the user (i.e. Row
100). Upon selecting the entire row, how do I change the screen view (scroll
down) so that that row is visible to the user? That is selecting it is
useless if the view cannot even see it.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Make selected row visible to user when out of screen view

Hi ExcelMonkey,

Try something like:

Application.Goto Reference:=Worksheets("Sheet1").Range("A100"), _
Scroll:=True


---
Regards,
Norman



"ExcelMonkey" wrote in message
...
I run a macro to look for a value in a cell. When it is found I exit the
routine and select the entire row of the active cell for the user to see.
However, sometimes the row itself is beyond the view of the user (i.e. Row
100). Upon selecting the entire row, how do I change the screen view
(scroll
down) so that that row is visible to the user? That is selecting it is
useless if the view cannot even see it.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Make selected row visible to user when out of screen view

For that to work do I not have to set a an object variable to the cell
address and then used that object variable in the Range propetly?

Dim ViewAddress As Object
Set ViewAddress = ActiveCell.Address

Application.Goto Reference:=Worksheets("Sheet1").Range(ViewAddress) ,
Scroll:=True


Does that sound right?
"Norman Jones" wrote:

Hi ExcelMonkey,

Try something like:

Application.Goto Reference:=Worksheets("Sheet1").Range("A100"), _
Scroll:=True


---
Regards,
Norman



"ExcelMonkey" wrote in message
...
I run a macro to look for a value in a cell. When it is found I exit the
routine and select the entire row of the active cell for the user to see.
However, sometimes the row itself is beyond the view of the user (i.e. Row
100). Upon selecting the entire row, how do I change the screen view
(scroll
down) so that that row is visible to the user? That is selecting it is
useless if the view cannot even see it.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Make selected row visible to user when out of screen view

Hi ExcelMonkey,

With a hardcoded range, the suggestion works unamended.

To use a range variable, try:

Dim ViewRng As Range

Set ViewRng = Worksheets("Sheet1").Range("A100")

Application.Goto Reference:=ViewRng, Scroll:=True


---
Regards,
Norman



"ExcelMonkey" wrote in message
...
For that to work do I not have to set a an object variable to the cell
address and then used that object variable in the Range propetly?

Dim ViewAddress As Object
Set ViewAddress = ActiveCell.Address

Application.Goto Reference:=Range(ViewAddress),
Scroll:=True


Does that sound right?
"Norman Jones" wrote:

Hi ExcelMonkey,

Try something like:

Application.Goto Reference:=Worksheets("Sheet1").Range("A100"), _
Scroll:=True


---
Regards,
Norman



"ExcelMonkey" wrote in message
...
I run a macro to look for a value in a cell. When it is found I exit
the
routine and select the entire row of the active cell for the user to
see.
However, sometimes the row itself is beyond the view of the user (i.e.
Row
100). Upon selecting the entire row, how do I change the screen view
(scroll
down) so that that row is visible to the user? That is selecting it is
useless if the view cannot even see it.

Thanks






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
view excel in full screen view JABCR Excel Worksheet Functions 1 April 25th 09 12:39 AM
HOW FIX EXCEL WHERE PRINT VIEW IS DIFFERENT FROM SCREEN VIEW Greenlight Excel Discussion (Misc queries) 0 March 19th 09 12:00 AM
Password visible if user selects "view code" kcdonaldson Excel Worksheet Functions 2 December 3rd 05 03:48 PM
How to make user forms FULL SCREEN? Fendic[_5_] Excel Programming 1 June 21st 05 07:04 PM
VBA code to make CUSTOM VIEW fill ANY RESOLUTION SCREEN www.ttdown.com Excel Programming 2 February 24th 04 03:56 PM


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