Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 143
Default Pulling Date Ranges

I have a column with dates that I use the following code to only pick up dates within a certain range. It works great but now I have to add another column that I needve to pick up that same date range from. So I need vb to look in the notelist column and if that date falls with the criteria pick it up then go to the other column and look for the same dates and add to the first. Can I add another if statement or do I have to repeat the entire code? Or what do you suggest? Still learning.


For Each cell In Range("NoteList")
cell.Offset(0, 5).Value = cell.Offset(0, 5).Value
If cell.Offset(0, 5) Range("HistDate") And cell.Offset(0, 5) <= Range("controldate") Then
Select Case cell.Offset(0, 2)


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
Web Query Pulling Date Incorrectly. DoveArrow Excel Discussion (Misc queries) 1 August 7th 07 01:21 AM
Pulling a value from another sheet, based on date Carlee Excel Worksheet Functions 0 June 11th 07 09:23 PM
Pulling Information into a sheet via date Schwimms Excel Discussion (Misc queries) 2 May 30th 07 06:47 PM
Pulling information from another wksheet by date tonysalas Excel Discussion (Misc queries) 1 July 20th 06 05:06 AM
Chart with Drop Down Box for Pulling mutpile Ranges ExcelMonkey[_118_] Excel Programming 0 May 13th 04 10:38 PM


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