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: 1
Default conversion to formula of string contaning IF clause

I have been using a large macro in Excel 2002 for some years now. One
step in the macro consists of creatng a formula.

An expression for a formula, using labels, is constructed as a string.
This is then converted into a formula by,

effectively, the following lines

formule = "=" & Selection.Value
Selection.FormulaR1C1 = formule

, where formule is a variable declared as String.

This method has always worked fine. However, recently I started using
formulas containing the IF( A, B, C) expression.

The macro stiil runs without errors messages. However, for the new type
of formulas the value is not emmediately calulated: the #NAME?
expression is shown instead. The formula is only evaluated after
selecting the cell, putting the cursor behind the formula and pressing
Enter.

It appears that the cell is not aware that the contents is a formula
and needs to be activated or awakened.

I have found several topics in this group relating to this issue, but
my problem seem to go beyond a basic string to

formula conversion.

What is happening, and what should be done to correct this.

 
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
String formula conversion Erik Excel Discussion (Misc queries) 1 February 13th 10 01:09 AM
min for the column contaning text Alex Excel Worksheet Functions 4 March 8th 06 07:35 PM
Simple String Conversion - HELP prepotency[_3_] Excel Programming 4 June 10th 05 02:56 PM
Adding "And" clause in SQL string causing SQL Syntax error Android[_2_] Excel Programming 3 July 8th 04 09:36 PM
String to Array Conversion Ussiddiqui[_14_] Excel Programming 1 January 31st 04 10:04 AM


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