Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
please... what's my error?
Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Since rows can reach up to 65536:
Dim sglEndSum As Long But this does not keep your code from running OK by me. HTH -- AP "mark kubicki" a écrit dans le message de news: ... please... what's my error? Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm getting a
method 'range' of object _worksheet failed message -m. "Ardus Petus" wrote in message ... Since rows can reach up to 65536: Dim sglEndSum As Long But this does not keep your code from running OK by me. HTH -- AP "mark kubicki" a écrit dans le message de news: ... please... what's my error? Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With debugger, check the value of sglEndSum. Maybe it is zero.
-- AP "mark kubicki" a écrit dans le message de news: ... I'm getting a method 'range' of object _worksheet failed message -m. "Ardus Petus" wrote in message ... Since rows can reach up to 65536: Dim sglEndSum As Long But this does not keep your code from running OK by me. HTH -- AP "mark kubicki" a écrit dans le message de news: ... please... what's my error? Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Also you don't need to test = True
If Range("D" & sglEndSum).HasFormula Then -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Ardus Petus" wrote in message ... With debugger, check the value of sglEndSum. Maybe it is zero. -- AP "mark kubicki" a écrit dans le message de news: ... I'm getting a method 'range' of object _worksheet failed message -m. "Ardus Petus" wrote in message ... Since rows can reach up to 65536: Dim sglEndSum As Long But this does not keep your code from running OK by me. HTH -- AP "mark kubicki" a écrit dans le message de news: ... please... what's my error? Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
it had been "zero-ing out"... thanks
"Bob Phillips" wrote in message ... Also you don't need to test = True If Range("D" & sglEndSum).HasFormula Then -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Ardus Petus" wrote in message ... With debugger, check the value of sglEndSum. Maybe it is zero. -- AP "mark kubicki" a écrit dans le message de news: ... I'm getting a method 'range' of object _worksheet failed message -m. "Ardus Petus" wrote in message ... Since rows can reach up to 65536: Dim sglEndSum As Long But this does not keep your code from running OK by me. HTH -- AP "mark kubicki" a écrit dans le message de news: ... please... what's my error? Dim sglEndSum As Single If Range("D" & sglEndSum).HasFormula = True Then MsgBox Range("D" & sglEndSum).Address & " contains a formula..." Range("D" & sglEndSum).Value = "not any more !" End If thanks in advance, mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple problem, simple formula, no FUNCTION ! | Excel Worksheet Functions | |||
Help with ActiveCell.HasFormula | Excel Programming | |||
HasFormula | Excel Programming | |||
Simple Simple Excel usage question | Excel Discussion (Misc queries) | |||
HasFormula protect cell | Excel Programming |