Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Locking range for view of Excel Sheet on button click

Hi,
I am working on an Excel VBA Application which has 2 graphs on
worksheet. I have added some buttons at the top of the sheet, so tha
only clicking one, the graph related to that button is seen. This i
done by hiding the rows containing the other graph and unhiding for th
selected graph.

But, the problem is that if the user scrolls down beneath the range o
graphs and then clicks on any of the buttons, the graphs are no
directly visible. The user has to scroll up in that case to view th
graph.

Is there any way that the certain range where the graphs are presen
are only made visible on button click. I tried select range option bu
it does not helps.

Can any one help me out with this.

Thanks,
Samee

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Locking range for view of Excel Sheet on button click

Dim rng as Range
set rng = Activesheet.ChartObjects(1).TopLeftCell
Application.Goto Reference:=rng, Scroll:=True

--
Regards,
Tom Ogilvy

"sameerce " wrote in message
...
Hi,
I am working on an Excel VBA Application which has 2 graphs on a
worksheet. I have added some buttons at the top of the sheet, so that
only clicking one, the graph related to that button is seen. This is
done by hiding the rows containing the other graph and unhiding for the
selected graph.

But, the problem is that if the user scrolls down beneath the range of
graphs and then clicks on any of the buttons, the graphs are not
directly visible. The user has to scroll up in that case to view the
graph.

Is there any way that the certain range where the graphs are present
are only made visible on button click. I tried select range option but
it does not helps.

Can any one help me out with this.

Thanks,
Sameer


---
Message posted from http://www.ExcelForum.com/



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
show different areas of sheet with a click radio button Sean Excel Discussion (Misc queries) 0 July 22nd 09 11:38 AM
Not able to Click Button placed in the Work Sheet Seetharaman Excel Worksheet Functions 1 January 29th 09 01:23 PM
quick button to view sheet Joey Excel Worksheet Functions 2 February 27th 08 01:01 AM
right-click on a control button and view code does nothing Kate Excel Worksheet Functions 11 November 16th 07 12:24 AM
Locking the view of Excel sheet sameerce[_8_] Excel Programming 10 May 13th 04 06:59 PM


All times are GMT +1. The time now is 10:42 PM.

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"