LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Tobias
 
Posts: n/a
Default macro recording

I am trying to record a macro, with a very long if-sequence. and it just says
"weren't able to record". I tried writing it in the VB-window as well but it
doesn't work:

this is the formula:
=IF(B2="Tobias";IF(N20,97*I2;IF(M2-1;IF(M2<10;1;0);0);IF(N2<0,03*I2;IF(O1=0;IF(M2-1;IF(M2<10;1;0);1);0);IF(O2=0;IF(M2-1;IF(M2<10;1;0);0);0)));IF(O2=0;IF(M2-1;IF(M2<10;1;0);0);0))

I guess it is too long? How do I then write it in the VB-editor?

When I wrote it in the editor it once worked but then it didn't like the B2
etc as cell references. I was using:

Range("Q2").Select
ActiveCell.FormulaR1C1 = "=IF(B2=""Tobias...etc

Thanks for any help on this matter,
Tobias
 
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
Recording a macro ... Marss Excel Discussion (Misc queries) 3 February 17th 05 07:26 PM
automatic macro update boconnell Excel Worksheet Functions 4 February 9th 05 07:10 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Can't get simple macro to run Abi Excel Worksheet Functions 5 January 12th 05 07:37 PM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 09:44 AM.

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

About Us

"It's about Microsoft Excel"