Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Your problem is with the AND that is not used. Here it is as code: Sub test() Dim a As String a = Chr(34) Worksheets(2).Select Cells(1, 1) = "=IF('Sheet One'!F16<" & a & a & ",'Shee One'!F16+'Sheet Two'!F16," & a & a & ")" End Su -- raypayett ----------------------------------------------------------------------- raypayette's Profile: http://www.excelforum.com/member.php...fo&userid=2956 View this thread: http://www.excelforum.com/showthread.php?threadid=57062 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change SUMIF formula into a vb code | Excel Discussion (Misc queries) | |||
Private Function Code Change | Excel Programming | |||
change the code to be a formula | Excel Discussion (Misc queries) | |||
how change formula with this code? | Excel Programming | |||
Help: Nested If/And Function formula to VB code | Excel Programming |