Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Match Error

Howdy,

I am having a problem with the following VBA Match code:

Option Explicit

Sub Macro2()

Dim Current_Col As Double
Dim Date_Range As Range

Set Date_Range = Range("M6:FO6")

Current_Col = Application.Match(Date, Date_Range, 1)
ActiveWindow.ScrollColumn = Current_Col

End Sub

Row 6 contains sorted dates and the using the MATCH
function within excel [ie MATCH(Today(),$M$6:$FO$6,1)]
works fine.

Looking for suggestions for this relatviley simple code.

Regards,
Tim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Match Error

Marcotte;

Thanks for the help, I would not have guessed that DATE was
causing the problem. Works like a charm...

Regards,
Tim
Reply
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
match error Belinda7237 Excel Worksheet Functions 3 August 8th 08 04:20 PM
INDEX/MATCH #REF! error Tony Excel Discussion (Misc queries) 2 July 4th 08 09:57 PM
Getting a MATCH error Lulu Montiel[_2_] Excel Discussion (Misc queries) 1 April 4th 08 05:44 PM
INDEX MATCH #N/A Error wkjgmom Excel Worksheet Functions 3 November 26th 07 04:37 AM
Match, Exact? NA error nastech Excel Discussion (Misc queries) 11 August 14th 06 08:25 PM


All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"