Problem with Worksheet Scroll bar

pavin

Active Member
Joined
Jan 20, 2009
Messages
308
Hi, I'm using the following code but there seems to be a problem.. Not sure if I'm using the right syntax

Code:
Sub Macro14()
MaxRng = Sheets("Prestwick-DiskSpace").[A1].End(xlDown).Row
    [COLOR=red]ActiveSheet.Shapes("Scroll Bar 6").Select[/COLOR]
    With Selection
        .Value = 0
        .Min = 0
        .Max = [COLOR=red]MaxRng[/COLOR]
        .SmallChange = 1
        .LargeChange = 10
        .LinkedCell = "$N$8"
        .Display3DShading = True
    End With
End Sub
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What kind of problem?

The code works fine on my end. Have you checked MaxRng before assigning it to .Max?

Best wishes,
Rolf
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,292
Members
449,149
Latest member
mwdbActuary

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