#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Scrollbar

I am trying to , through VBA, scrollbars that link to certain cells.

The problem is I do not know exactly where the scrollbar will be added. So
I am looping through the sheet for cells that contain "Total" when I find it
I want to add a scrollbar that "links" to the cell one column over. The only
way I have found the "Cell link" property to work for the scrollbar is if
it's hardcoated. For example, ".linkedcell = "$B$3".

How do i set the property for ".linkedcell" if I am uncertain about the cell
it will be linking to.

visual example...http://www.myanalystteam.com/linked.ppt
Thank you

Daniel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Scrollbar

Once you found your cell use the Offset method in whatever direction gives
you "one column over" and then the Address property of that.

--
Jim
"dstiefe" wrote in message
...
|I am trying to , through VBA, scrollbars that link to certain cells.
|
| The problem is I do not know exactly where the scrollbar will be added.
So
| I am looping through the sheet for cells that contain "Total" when I find
it
| I want to add a scrollbar that "links" to the cell one column over. The
only
| way I have found the "Cell link" property to work for the scrollbar is if
| it's hardcoated. For example, ".linkedcell = "$B$3".
|
| How do i set the property for ".linkedcell" if I am uncertain about the
cell
| it will be linking to.
|
| visual example...http://www.myanalystteam.com/linked.ppt
| Thank you
|
| Daniel


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Scrollbar

Thank you for responding...I guess I'm still confused as how I would use the
offset method in this situation.

would it look like this:

..linkedcell = "object.cells(i,3).offset(1,0)"

"Jim Rech" wrote:

Once you found your cell use the Offset method in whatever direction gives
you "one column over" and then the Address property of that.

--
Jim
"dstiefe" wrote in message
...
|I am trying to , through VBA, scrollbars that link to certain cells.
|
| The problem is I do not know exactly where the scrollbar will be added.
So
| I am looping through the sheet for cells that contain "Total" when I find
it
| I want to add a scrollbar that "links" to the cell one column over. The
only
| way I have found the "Cell link" property to work for the scrollbar is if
| it's hardcoated. For example, ".linkedcell = "$B$3".
|
| How do i set the property for ".linkedcell" if I am uncertain about the
cell
| it will be linking to.
|
| visual example...http://www.myanalystteam.com/linked.ppt
| Thank you
|
| Daniel



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Scrollbar

I'm not really to sure what you're doing. If you know the name of an object
you can find the cell it starts in and then any cell in relation to that
cell. So if you wanted it put some text in the cell to the right of a
button you could do this:

Activesheet.Buttons("Button1").TopLeftCell.Offset( 0,1).Value = "abc"

I hope this is getting closer to what you want to do...

--
Jim
"dstiefe" wrote in message
...
Thank you for responding...I guess I'm still confused as how I would use
the
offset method in this situation.

would it look like this:

.linkedcell = "object.cells(i,3).offset(1,0)"

"Jim Rech" wrote:

Once you found your cell use the Offset method in whatever direction
gives
you "one column over" and then the Address property of that.

--
Jim
"dstiefe" wrote in message
...
|I am trying to , through VBA, scrollbars that link to certain cells.
|
| The problem is I do not know exactly where the scrollbar will be added.
So
| I am looping through the sheet for cells that contain "Total" when I
find
it
| I want to add a scrollbar that "links" to the cell one column over.
The
only
| way I have found the "Cell link" property to work for the scrollbar is
if
| it's hardcoated. For example, ".linkedcell = "$B$3".
|
| How do i set the property for ".linkedcell" if I am uncertain about the
cell
| it will be linking to.
|
| visual example...http://www.myanalystteam.com/linked.ppt
| Thank you
|
| Daniel





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
Scrollbar Help kay Charts and Charting in Excel 1 October 29th 08 05:35 PM
Scrollbar help [email protected] Excel Discussion (Misc queries) 1 January 19th 07 10:48 PM
scrollbar reslut makes another scrollbar to show Patrik Excel Discussion (Misc queries) 0 April 18th 05 03:11 PM
Scrollbar junx13[_11_] Excel Programming 0 September 20th 04 08:03 AM
Scrollbar stewatr Excel Programming 0 November 28th 03 04:57 PM


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