scroll from one column to another

gman1979

New Member
Joined
Oct 12, 2007
Messages
35
hi guy's,

I’m trying to scroll from one column to another each time i click the "next" button.
i want the start position to always be column 8, but then each time the button clicked it scrolls to the next one up and so on, then do one that goes back the way from the current column - 1 and do on.

I’ve tried getting he column address, but keep getting error messages when i try to + or - a value to get it to descend or ascend

any help would be great guy's,

cheers

G
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
that's great and if an alternative can't be found i'll use it thanks, but i'm looking for something that doesn't select the entire column (sorry if i didn’t explain that in my initial thread)

so far i've got

Private Sub Right_Click()
ActiveWindow.Panes(ActiveWindow.Panes.Count).ScrollColumn = 9
End Sub

but i want to set a start position of column 9 and then scroll + 1 from current if that's possible, i think it would look a bit slicker, ive tried setting the scrollcolumn value to a variant value that increases but i'm totally lost.

cheers

G
 
Upvote 0
HI,

Well this will move it over 1 cell but stay in the same row;

Code:
Selection.Offset(0, 1).Select

Or to select the cell in row 1;

Code:
Cells(1, Selection.Offset(0, 1).Column).Select
 
Upvote 0

Forum statistics

Threads
1,216,216
Messages
6,129,564
Members
449,516
Latest member
lukaderanged

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top