Dn18
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 4 articles for 0.175 sec
This did work for me: ActiveSheet.Range("A7:BW16,CA7:CV16," & _ "A18:DN18,A20:BA20,A25:BW34," & _ "CA25:CV34,A36:DN36,A38:BA38," & _ "A43:BW52,CA43:CV52,A54:DN54," & _ "A56:BA56,A61:BW70,CA61:CV70," & _ "A72:DN72,A74:BA74,A79:BW88," & _ "CA79:CV88,A90:DN90,A92:BA92," & _     

Group: microsoft.public.excel.misc · Group Profile · Search for Dn18 in microsoft.public.excel.misc
Author: Dave Peterson
Date: Apr 26, 2007 04:13

Barb's code needs a space before that underscore character. Sub ClearRange() dim myrange as range set myrange = union(range("A7:BW16"),range("CA7:CV16"), range("A18:DN18"), _ range("A20:BA20")) myrange.value = 9 end sub Alternatively, you could use: Option Explicit Sub ClearRange2() Activesheet.Range("A7:BW16,CA7:CV16,A18:DN18,A20:BA20").Value = 9 end Sub M.A.Tyler
Show full article (3.60Kb)
I'm assuming you want to clear all of the ranges listed Sub ClearRange() dim myrange as range set myrange = union(range("A7:BW16"),range("CA7:CV16"), range("A18:DN18"),_ range("A20:BA20")) myrange.value = 9 end sub HTH, Barb Reinhardt "M.A.Tyler" wrote: > I need to write a macro that clears several fields and replaces the empty > cells with 9. The fields are as follows     

Group: microsoft.public.excel.misc · Group Profile · Search for Dn18 in microsoft.public.excel.misc
Author: Dave Peterson
Date: Apr 25, 2007 18:15

Mail received on spamtrap. This spamtrap mail has been redacted, the mail was not really sent to <Mikki_1510@users.spamikaze.org>. URLs have been stripped of the parts before and after the host name. From Mikki_1510@users.spamikaze.org Tue Aug 08 10:16:16 2006 Return-path: <Mikki_1510@users.spamikaze.org> Received: from [201.9.70.8] (helo=201009070008.user.veloxzone.com.br) by mail.victim
Show full article (1.10Kb)
    

Group: microsoft.public.excel.misc · Group Profile · Search for Dn18 in microsoft.public.excel.misc
Author: Barb Reinhardt
Date: Apr 25, 2007 17:42

Show full article (0.48Kb) · Show article thread
    

Group: news.admin.net-abuse.sightings · Group Profile · Search for Dn18 in news.admin.net-abuse.sightings
Author: Mikki
Date: Aug 8, 2006 08:00

Show full article (4.10Kb)