LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Macro Problem

I am trying to build a macro to automate some of my worksheet filtering.
Here's what I have been trying to use:

Sub StrikeCheck()
For i = 3 To 3
Range("B" & i).Select
Dim A As String
A = "=" & Range("B" & i).Value
Dim B As String
B = "=" & Range("D" & i).Value
Dim C As String
C = "<=" & Range("E" & i).Value
Dim D As String
D = "=" & Range("F" & i).Value
Dim E As String
E = "=" & Range("G" & i).Value
Sheets("configman").Select

Selection.AutoFilter Field:=4, Criteria1:=A, Operator:=xlAnd

Selection.AutoFilter Field:=6, Criteria1:=B, Operator:=xlAnd, _

Criteria2:=C

Selection.AutoFilter Field:=5, Criteria1:=D, Operator:=xlAnd

Next i

End Sub

The Macro does not preform the last Filter, For Criteria=D correctly. The
values in theat column are dates. The value that is being put into the filter
is a formated date and is a result of a formula.

Are there some suggestions on how I can get this to work ?

Thank you in advance.
 
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 with Macro ChuckW Excel Discussion (Misc queries) 0 March 28th 07 01:16 AM
macro problem hombreazul Excel Discussion (Misc queries) 2 March 16th 06 10:54 PM
Macro problem....... Alec H Excel Discussion (Misc queries) 4 February 15th 06 11:38 AM
macro problem tweacle Excel Worksheet Functions 0 December 27th 05 12:27 PM
macro problem Kevin Excel Discussion (Misc queries) 1 December 14th 04 10:47 PM


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