Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Using formula in code...Part 3!


Following on from Parts 2 and 1.......!!! See previous questions of the same
title.

Bob Phillips provided me with the following code:

Range(Cells(1, 17), Cells(LastRow, 17)).FormulaR1C1 = _
"=MID(RC[-2],FIND(""."",RC[-2],1)-1,3)"


This works fine but instead of returning a resulting value...it places the
formula itself in the target range. I.e the cells contain the written formula
expression rather than the result of the calculation described by that
expression.
Anyone know why please?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Using formula in code...Part 3!

This was answered in the other thread.

Alan M wrote:

Following on from Parts 2 and 1.......!!! See previous questions of the same
title.

Bob Phillips provided me with the following code:

Range(Cells(1, 17), Cells(LastRow, 17)).FormulaR1C1 = _
"=MID(RC[-2],FIND(""."",RC[-2],1)-1,3)"

This works fine but instead of returning a resulting value...it places the
formula itself in the target range. I.e the cells contain the written formula
expression rather than the result of the calculation described by that
expression.
Anyone know why please?


--

Dave Peterson
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
Using formula in code....Part 2! Alan M Excel Programming 7 August 20th 07 01:52 PM
Need code to replace part of a range within a formula with a defined name Jeff[_50_] Excel Programming 2 May 2nd 06 10:59 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 5 October 30th 04 12:35 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 07:05 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 06:07 PM


All times are GMT +1. The time now is 02:16 PM.

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"