LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Formula Error-Error Message

I keep getting an application defined/object defined error on the following;
any ideas what I'm doing wrong here? Could it have to do with the various
range names used in the formula? Am just trying to insert a formula into
Cell O13.

Sub FormulaInColO()
Worksheets("MMS for CP").Range("O13").Select
Selection.Formula = "=IF(P13=5,13," & _
"IF(M13<5,INDEX(SNT,MATCH(H13,SNT_COLA,0),MATCH(M1 3,SNT_ROW13,0))," & _

"IF(M13=9,+AU13,IF(M13=10,INDEX(SMB,MATCH(H13,SMB_ COLA,0),MATCH(M13,SMB_ROW13,0))," & _

"IF(M13<=8,INDEX(SNTOS,MATCH(H13,SNTOS_COLA,0),MAT CH(M13,SNTOS_ROW13,0))," & _
"IF(M13<=14,INDEX(IPS,MATCH(H13,IPS_COLA,0),MATCH( M13,IPS_ROW13,0))," & _

"IF(M13<=18,INDEX(IPSO,MATCH(H13,IPSSO_COLA,0),MAT CH(M13,IPSSO_ROW13,0)),14)))))"
End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I have error message when formula is over value? dvozar Excel Worksheet Functions 2 June 19th 06 04:43 PM
Error message #NAME from formula JDub Excel Worksheet Functions 1 April 6th 06 08:35 PM
error message: compile error, argument not optional Pierre via OfficeKB.com Excel Programming 3 September 5th 05 03:45 PM
Formula Error Message Chambersteacher Excel Discussion (Misc queries) 1 March 9th 05 04:14 AM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM


All times are GMT +1. The time now is 11:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"