Link a VBA scroll bar to a sheet and have it move data up and down a column?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I want to set up a VBa scroll bar to move a value up and down rows in a column?

In Column Y I have the word "Start" now lets say its in cell Y25
I'd like to have a VBA scroll bar next to it and as I scroll up and down have the word "Start" move up and down the Column.
can this be done?
Any ideas how I could do it?

Thanks

Tony
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Re: how can i link an VBA scrol bar to a sheet and have it move data up and down a column?

Perhaps this:-
Code:
Private [COLOR="Navy"]Sub[/COLOR] ScrollBar1_Change()
ScrollBar1.Max = 100
ScrollBar1.Min = 1
Range("Y1:Y100").ClearContents
Cells(ScrollBar1.Value, "Y") = "Start"
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0
Re: how can i link an VBA scrol bar to a sheet and have it move data up and down a column?

Perfect, thank you mickG
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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