Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Run Time Error, FormulaR1C1

Hi,

I get Error 1004 all the time and i don´t know what´s wrong.

My goal is to get the position of the last text in a column.

Worksheets("Transaktioner").Range("A1").FormulaR1C 1 =
"=IF(ISERROR(CELL(""address"";INDEX(Transaktioner! K:K;MATCH(REPT(""z"";
255);Transaktioner!K:K;1);1)));0;CELL(""address""; INDEX(Transaktioner!
K:K;MATCH(REPT(""z"";255);Transaktioner!K:K;1);1)) )"

The formula works when i paste it to my sheet. And i have replaced the
single " with "".

My first post here. I hope some kind person can help me.

Christheburg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Run Time Error, FormulaR1C1


It worked for me after replacing the semi-colons with commas.
Also, as posted, the code needs an underscore following the first equal sign...
= _
You also might try changing .FormulaR1C1 to .Formula
However, it worked both ways for me.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




wrote in message
Hi,
I get Error 1004 all the time and i don´t know what´s wrong.
My goal is to get the position of the last text in a column.
Worksheets("Transaktioner").Range("A1").FormulaR1C 1 =
"=IF(ISERROR(CELL(""address"";INDEX(Transaktioner! K:K;MATCH(REPT(""z"";
255);Transaktioner!K:K;1);1)));0;CELL(""address""; INDEX(Transaktioner!
K:K;MATCH(REPT(""z"";255);Transaktioner!K:K;1);1)) )"
The formula works when i paste it to my sheet. And i have replaced the
single " with "".
My first post here. I hope some kind person can help me.
Christheburg

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Run Time Error, FormulaR1C1

First, VBA is USA centric.

You'll want to change all the semicolons to commas. They'll be converted when
the formula is plopped into the worksheet cell.

Second, your formula doesn't look like it's in R1C1 reference style. It looks
like A1 reference style to me.

I'd try:

Worksheets("Transaktioner").Range("A1").Formula _
= "=IF(ISERROR(CELL(""address""," _
& "INDEX(Transaktioner!K:K,MATCH(REPT(""z"",255) " _
& ",Transaktioner!K:K,1),1))),0," _
& "CELL(""address"",INDEX(Transaktioner!K:K," _
& "MATCH(REPT(""z"",255),Transaktioner!K:K,1),1) ))"



wrote:

Hi,

I get Error 1004 all the time and i don´t know what´s wrong.

My goal is to get the position of the last text in a column.

Worksheets("Transaktioner").Range("A1").FormulaR1C 1 =
"=IF(ISERROR(CELL(""address"";INDEX(Transaktioner! K:K;MATCH(REPT(""z"";
255);Transaktioner!K:K;1);1)));0;CELL(""address""; INDEX(Transaktioner!
K:K;MATCH(REPT(""z"";255);Transaktioner!K:K;1);1)) )"

The formula works when i paste it to my sheet. And i have replaced the
single " with "".

My first post here. I hope some kind person can help me.

Christheburg


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Run Time Error, FormulaR1C1

On 5 Feb, 01:55, Dave Peterson wrote:
First, VBA is USA centric.

You'll want to change all the semicolons to commas. *They'll be converted when
the formula is plopped into the worksheet cell.

Second, your formula doesn't look like it's in R1C1 reference style. *It looks
like A1 reference style to me.

I'd try:

Worksheets("Transaktioner").Range("A1").Formula _
* *= "=IF(ISERROR(CELL(""address""," _
* * *& "INDEX(Transaktioner!K:K,MATCH(REPT(""z"",255) " _
* * *& ",Transaktioner!K:K,1),1))),0," _
* * *& "CELL(""address"",INDEX(Transaktioner!K:K," _
* * *& "MATCH(REPT(""z"",255),Transaktioner!K:K,1),1) ))"





wrote:

Hi,


I get Error 1004 all the time and i don´t know what´s wrong.


My goal is to get the position of the last text in a column.


Worksheets("Transaktioner").Range("A1").FormulaR1C 1 =
"=IF(ISERROR(CELL(""address"";INDEX(Transaktioner! K:K;MATCH(REPT(""z"";
255);Transaktioner!K:K;1);1)));0;CELL(""address""; INDEX(Transaktioner!
K:K;MATCH(REPT(""z"";255);Transaktioner!K:K;1);1)) )"


The formula works when i paste it to my sheet. And i have replaced the
single " with "".


My first post here. I hope some kind person can help me.


Christheburg


--

Dave Peterson- Dölj citerad text -

- Visa citerad text -


It work´s perfect !

Thank´s a lot !

Christheburg
Reply
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
run time error 1004 general odbc error excel 2003 vba Mentos Excel Programming 5 January 24th 11 02:56 PM
FormulaR1C1 error on a SUMIF Mike Gallagher[_2_] Excel Programming 1 June 22nd 06 07:38 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
FormulaR1C1 gets strange application/object defined error aspenbordr Excel Programming 2 July 25th 05 06:27 PM
Run Time Error, FormulaR1C1 D.S.[_3_] Excel Programming 9 January 2nd 04 12:25 PM


All times are GMT +1. The time now is 11:03 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"