LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
jgriffs
 
Posts: n/a
Default simple deletion won't work for me


Hi!
I wish to have an Excel sheet which simply looks at the date and if
that date or past, delete a range. This should be so simple but I can't
get it to work.
Here's what I have:

Sub deleterange()
'
'dim datadate
datadate = Range("b3").Value
' If datadate 38747 Then
Range("C5:D11").Select
selection.Clear
MsgBox "datadate is " & datadate

End Sub

With the above, the variable "datadate" comes into the message box as
38747 so the logic or syntax of my If is off. And after a bunch of
time, the various "Help" files have not.
Thanks for your time and fix
John


--
jgriffs
------------------------------------------------------------------------
jgriffs's Profile: http://www.excelforum.com/member.php...o&userid=30947
View this thread: http://www.excelforum.com/showthread...hreadid=506184

 
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
Converting Date to Work Week... PokerZan Excel Discussion (Misc queries) 4 September 1st 05 09:47 PM
Visible rows and functions that work tracy Excel Worksheet Functions 2 August 19th 05 05:25 AM
Tab key don't work in unprotected cells in a protected sheet Chad Excel Discussion (Misc queries) 0 August 16th 05 02:00 AM
Some Excel links don't work Ben Enfield Excel Discussion (Misc queries) 3 August 2nd 05 12:29 AM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM


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