Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Newbie needs translation of Andy Pope's code

Hi,

Not sure if I am in the right forum, but I would be grateful for any help in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go along.

Thanking you in advance

--
Smudge
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Newbie needs translation of Andy Pope's code

Looks like you removed all the code, so how can we tell you what it is
doing?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Smudge" wrote in message
...
Hi,

Not sure if I am in the right forum, but I would be grateful for any help
in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go
along.

Thanking you in advance

--
Smudge



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Newbie needs translation of Andy Pope's code

Just "read between the lines". <g

Rick


"Bob Phillips" wrote in message
...
Looks like you removed all the code, so how can we tell you what it is
doing?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Smudge" wrote in message
...
Hi,

Not sure if I am in the right forum, but I would be grateful for any help
in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go
along.

Thanking you in advance

--
Smudge




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Newbie needs translation of Andy Pope's code

Hi,

I've just copied it by right click - view code

Object is scrollbar 1 and procedure is change.

There is no more code there.

Am I right in thinking that what you are saying is that it doesn't actually
do anything? I think that kind of makes sense. Doesn't make me feel any less
stupid! :-)

Well I did say newbie!

Dare I ask what the few lines of code (that were there) mean or will my face
be even redder?

Cheers--
Smudge


"Bob Phillips" wrote:

Looks like you removed all the code, so how can we tell you what it is
doing?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Smudge" wrote in message
...
Hi,

Not sure if I am in the right forum, but I would be grateful for any help
in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go
along.

Thanking you in advance

--
Smudge




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Newbie needs translation of Andy Pope's code

Hi,

There is no code required in that example. The scroll bar is simply linked
to a cell.
The cell which it is linked to is then used in a named range.

=OFFSET(Sheet1!$B$1,Sheet1!$E$2,0,Sheet1!$E$3,1)

And the named range is used as the data source in the chart.

For more information on dynamic charts see here
http://peltiertech.com/Excel/Charts/Dynamics.html
http://peltiertech.com/Excel/Charts/...hartLinks.html


Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Smudge" wrote in message
...
Hi,

Not sure if I am in the right forum, but I would be grateful for any help
in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go
along.

Thanking you in advance

--
Smudge




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Newbie needs translation of Andy Pope's code

Thank you Andy.

The scrolling chart is fantastic. Just what I need.

Think I need to do more playing around with offset to understand it better.
Need to walk before running

Thanks again :-)
--
Smudge


"Andy Pope" wrote:

Hi,

There is no code required in that example. The scroll bar is simply linked
to a cell.
The cell which it is linked to is then used in a named range.

=OFFSET(Sheet1!$B$1,Sheet1!$E$2,0,Sheet1!$E$3,1)

And the named range is used as the data source in the chart.

For more information on dynamic charts see here
http://peltiertech.com/Excel/Charts/Dynamics.html
http://peltiertech.com/Excel/Charts/...hartLinks.html


Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Smudge" wrote in message
...
Hi,

Not sure if I am in the right forum, but I would be grateful for any help
in
explaining what the code does.

The code
Option Explicit

Private Sub ScrollBar1_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

This is from the scroll control on a scrolling graph - very neat - but i
would like to understand what it's doing. Hopefully learning as i go
along.

Thanking you in advance

--
Smudge


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
Code translation please N.F[_2_] Excel Discussion (Misc queries) 0 July 6th 07 12:42 AM
VBA code translation - compile error MaBell Excel Programming 1 April 28th 05 07:40 AM
Can you help with the correct translation of this code? Just For Fun... Excel Programming 0 September 30th 04 06:16 AM
Cell Translation Code [email protected] Excel Programming 3 April 11th 04 04:24 PM
XlPrevious Translation Code Steve Barwood Excel Programming 2 January 15th 04 03:31 PM


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