Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Data Type Problem!!!

I am having trouble with a data type ...that is what I suspect.

I am trying to make a macro with a loop for running a Autofilter where in
the macro selects the filtes as 1:01,1:02,1:03....1:40.

I am able to make a loop and run it properly but the problem is that macro
does not work for values 1:01,1:02...1:09 after that it works fine. The
command I am using is:

Dim xsect As Integer
Dim ysect As Integer
..
..(This area has the loop which is working fine)
..
Selection.AutoFilter Field:=6, Criteria1:=xsect & ":" & ysect

Now the problem is the macro runs a search for 1:1 and not 1:01 is there any
way I can make ysect increase by 1 and show i t up as 2 digits for a single
digit as well. If not then what should I do?



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
Data Type Problem? bailey Excel Discussion (Misc queries) 8 December 6th 05 03:51 AM
Type Mismatch Problem Damien McBain[_2_] Excel Programming 2 May 20th 05 04:09 PM
Type mismatch problem? NooK[_45_] Excel Programming 3 August 4th 04 01:07 PM
Data type problem - ODBC Excel '97-2000 Driver Ryan Excel Programming 2 May 27th 04 09:19 PM
Excel VBA - Data Type Conversion problem PaulC Excel Programming 3 May 10th 04 04:53 PM


All times are GMT +1. The time now is 12:06 AM.

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"