LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA AUtofilter arrow (blue) on wrong column


Hi everybody,
I'm having a bit of a struggle to find out what's wrong with this
code:

VBA CODE:
Private Sub Worksheet_Activate()
Dim rFilter As Range

On Error Resume Next

'turn on autofilter
Me.EnableAutoFilter = True
Set rFilter = Me.Range("tl_Transactions_Data")
rFilter.AutoFilter
If ActiveSheet.FilterMode Then
Me.ShowAllData
End If

'toggle drop-down arrows
If Not Me.AutoFilterMode Then rFilter.AutoFilter

Me.EnableOutlining = True

Me.Protect Password:="My_Sheet", Contents:=True,
UserInterfaceOnly:=True, DrawingObjects:=False

'sort the transaction data range -no headers!
Me.Range("tl_transaction_data").Sort _
Key1:=[A1], Order1:=xlAscending, header:=xlNo,
Orientation:=xlSortColumns

If Application.ScreenUpdating = False Then Application.ScreenUpdating =
True

If Not Application.Calculation = xlCalculationAutomatic Then
Application.Calculation = xlCalculationAutomatic

End Sub

VBA CODE

When the autofilter is enabled it displays the blue arrow on a
different column, making things very difficult (for me as the developer
).

Any ideas, I couldn't find anything on this on the web..

Thank you very much,

bastanu


--
bastanu
------------------------------------------------------------------------
bastanu's Profile: http://www.excelforum.com/member.php...o&userid=20015
View this thread: http://www.excelforum.com/showthread...hreadid=395632

 
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
can you change the colour of the arrow from blue when filtering? clarasmummy Excel Discussion (Misc queries) 1 May 10th 10 04:06 PM
Blue Border and Down to the right arrow - BIZARRE DON'T KNOW BlueWolverine Excel Discussion (Misc queries) 3 May 6th 08 01:23 PM
red autofilter arrows instead of blue in Excel? Trader D Excel Discussion (Misc queries) 1 August 28th 06 04:36 AM
excel autofilter down-arrow bad contrast blue/black when in use james f Excel Discussion (Misc queries) 2 June 12th 06 09:21 PM
Change rollover color on autofilter arrow from blue to red afineline Excel Worksheet Functions 1 February 12th 05 03:30 AM


All times are GMT +1. The time now is 04:21 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"