LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How do I write a "For Each Statement" nested in a "With Statement"?

Hi
then your statement can't work. you may try something along the lines
'...
Dim cell as range
for each cell in rng
if cell.value=dtReportDate then
'do something
end if
next
'...

--
Regards
Frank Kabel
Frankfurt, Germany

"Mcasteel" schrieb im
Newsbeitrag ...

Dim strReportDate As String
strReportDate = InputBox("Please Enter Report Date:", "Get Daily
Report:")

Dim dtReportDate As Date
dtReportDate = DateValue(Date:=strReportDate)


--
Mcasteel
---------------------------------------------------------------------

---
Mcasteel's Profile:

http://www.excelforum.com/member.php...o&userid=15698
View this thread:

http://www.excelforum.com/showthread...hreadid=276390


 
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
How do I write a conditional "IF" statement to color a group of ce mulehead Excel Discussion (Misc queries) 2 November 8th 07 08:16 PM
Nested If Statement "FALSE" Return Margie Excel Worksheet Functions 8 August 17th 07 11:37 PM
vba: How do I write a "For Each Statement" nested in a "With Statement"? Mcasteel[_27_] Excel Programming 1 November 8th 04 09:23 PM
vba: How do I write a "For Each Statement" nested in a "With Statement"? Mcasteel[_29_] Excel Programming 0 November 8th 04 09:08 PM
vba: How do I write a "For Each Statement" nested in a "With Statement"? Mcasteel[_28_] Excel Programming 0 November 8th 04 08:58 PM


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