View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
mudraker[_208_] mudraker[_208_] is offline
external usenet poster
 
Posts: 1
Default Making A Nacro To Change The Contents Of Many Cells

Try





Sub ff()

Dim c As Range
Dim sTxt As String

For Each c In Range("a1:a10")
If c.Value < "" Then
Stop
sTxt$ = Mid(c.Formula, 1)
sTxt$ = Mid(sTxt, 2)
c.Value = "=If(" & sTxt & "<0," & sTxt & ","""")"

End If
Next c

End Su

--
Message posted from http://www.ExcelForum.com