#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown


Hey all,

I had previously posted this question but it seemed confusing to all.
So, I have broke up the question and this is my first query.

1. I need to create a macro. While recording it, I use filter to a
column which contains date (dd-mmm-yyyy). Now, who do I select the
present date from the list in the drop down? Suppose I click or use the
arrow keys for 17th January 2006. Tomorrow, when I enter a new data into
this, it should stand and select 18th January 2006 in the dropdown,
which is not happening. So is there any procedure wherein I can select
the present date in the drop down.
Help is appreciated. :)

Thanks,
Pravi


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Dropdown

Can you show your current code which sets the filter?

Tim

--
Tim Williams
Palo Alto, CA


"praveen_khm"
wrote in message
...

Hey all,

I had previously posted this question but it seemed confusing to all.
So, I have broke up the question and this is my first query.

1. I need to create a macro. While recording it, I use filter to a
column which contains date (dd-mmm-yyyy). Now, who do I select the
present date from the list in the drop down? Suppose I click or use the
arrow keys for 17th January 2006. Tomorrow, when I enter a new data into
this, it should stand and select 18th January 2006 in the dropdown,
which is not happening. So is there any procedure wherein I can select
the present date in the drop down.
Help is appreciated. :)

Thanks,
Pravi


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile:

http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown


Tim,
The code I use for the filter is given below. Here, in the criteria, it
shows 17-Jan-2006. I want something which can make the criteria as the
present day. Please help
Your quick help is appreciated.

Sub pravi()
Range("A3").Select
Selection.AutoFilter
Range("I3").Select
Selection.AutoFilter Field:=9, Criteria1:="17-Jan-2006"
Range("A1").Select
End Sub

Thanks.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown


Tim,
The code I use for the filter is given below. Here, in the criteria, it
shows 17-Jan-2006. I want something which can make the criteria as the
present day. Please help
Your quick help is appreciated.

Sub pravi()
Range("A3").Select
Selection.AutoFilter
Range("I3").Select
Selection.AutoFilter Field:=9, Criteria1:="17-Jan-2006"
Range("A1").Select
End Sub

Thanks.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown


Tim,
The code I use for the filter is given below. Here, in the criteria, it
shows 17-Jan-2006. I want something which can make the criteria as the
present day. Please help
Your quick help is appreciated.

Sub pravi()
Range("A3").Select
Selection.AutoFilter
Range("I3").Select
Selection.AutoFilter Field:=9, Criteria1:="17-Jan-2006"
Range("A1").Select
End Sub

Thanks.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Dropdown

Try something like

Selection.AutoFilter Field:=9, Criteria1:= Format(Now(), "dd-mmm-yyyy")

--
Tim Williams
Palo Alto, CA


"praveen_khm"
wrote in message
...

Tim,
The code I use for the filter is given below. Here, in the criteria, it
shows 17-Jan-2006. I want something which can make the criteria as the
present day. Please help
Your quick help is appreciated.

Sub pravi()
Range("A3").Select
Selection.AutoFilter
Range("I3").Select
Range("A1").Select
End Sub

Thanks.


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile:

http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dropdown


Thanks Tim... :)


--
praveen_khm
------------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...o&userid=30364
View this thread: http://www.excelforum.com/showthread...hreadid=502249

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
select From dropdown and return another dropdown menu RE4379 Excel Discussion (Misc queries) 2 March 11th 10 03:09 PM
Dropdown box display only data dependent on another dropdown box? Chris Excel Worksheet Functions 8 August 5th 08 05:01 PM
populating a dropdown based on choice from a previous dropdown Conor[_3_] Excel Programming 2 March 9th 06 07:15 PM
offer dropdown options based on another dropdown Conor Excel Discussion (Misc queries) 2 January 13th 06 04:28 PM
How do I create a dropdown within a dropdown? Joyce Keller Excel Discussion (Misc queries) 1 December 5th 05 04:02 PM


All times are GMT +1. The time now is 07:58 AM.

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"