conditional formatting

G

geebee

hi,

i have the following:

dim z as integer
for z = 8 to 100

Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=ROUND(D " & z & ",3)>=$B$5"

next z

for some reason i am getting a runtime error 5 error message: invalid
procedure call or argument. im not sure why.

thanks in advance,
geebee
 
J

Jim Rech

Is that a space after the "D"?

--
Jim
| hi,
|
| i have the following:
|
| dim z as integer
| for z = 8 to 100
|
| Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
| "=ROUND(D " & z & ",3)>=$B$5"
|
| next z
|
| for some reason i am getting a runtime error 5 error message: invalid
| procedure call or argument. im not sure why.
|
| thanks in advance,
| geebee
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top