LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Scrol window

You could use this technique to scroll, by placing the snippet on the line
after where you add the color.

ActiveWindow.ScrollColumn = Selection.Cells.Count / 2
MsgBox "Look"
ActiveWindow.ScrollColumn = 1

You can adjust it to look further or less. The last line returns it to full
left justify.


"excelent" wrote in message
...
Hi experts
Code below finds and marks cells red if value is uniqus
Problem is that if i select a large range i cant se all red-marked cells
Is there a way to scroll window while code is running ?

Sub RemoveUniqs()
Dim rng As Range
Dim rng2 As Range
Set rng = Selection
rng.Interior.ColorIndex = xlNone
For Each c In rng
If WorksheetFunction.CountIf(rng, c.Value) = 1 Then
If rng2 Is Nothing Then
Set rng2 = c
Else
Set rng2 = Application.Union(rng2, c)
End If
End If
Next

rng2.Interior.ColorIndex = 3
Title = " Uniqs value is colored red ! what now ?"
choice1 = "Type 1 Clear value"
choice2 = "Type 2 Clear value and move cells up"
choice3 = "Type 3 Delete entire row"
choice = InputBox("" & choice1 & Chr(10) & choice2 & Chr(10) & choice3 &
"",
Title)
If choice = 1 Then rng2 = ""
If choice = 2 Then rng2.Delete Shift:=xlUp
If choice = 3 Then rng2.EntireRow.Delete
End Sub



 
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
Problem in Using Control Tab to scrol trough several Workbooks Alain-79 Excel Programming 0 July 27th 09 02:51 PM
auto scrol doune for hyperlink. rajaiy Excel Worksheet Functions 2 July 21st 09 01:15 PM
How do I creat scrol Bar in cell? Sit Kumar Excel Discussion (Misc queries) 2 September 14th 06 01:55 PM
excel sheet and word doc. how can I compare both simult and scrol morrell Excel Discussion (Misc queries) 1 February 11th 06 09:28 AM
how do I make a heading row "float" to follow the data as I scrol. ROOD Excel Worksheet Functions 1 March 30th 05 11:11 PM


All times are GMT +1. The time now is 05:47 PM.

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"