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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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