Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to substitute value of stringvariable to ActiveCell.FormulaR1C

Hello,

I have built a stringvariable in VBA with a VLOOKUP formula in it (the
tablearray refers to another file that has been input by a GetOpenFilename).
The ActiveCell.FormulaR1C1 = strFormula does not seem to work. How do I get
this
stringvariable substituted in the ActiveCell.FormulaR1C1 = ?
Thanks for your help and suggestions.

Ron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default How to substitute value of stringvariable to ActiveCell.FormulaR1C

First, you have to confirm that the string you are passing to the variable
"strFormula"
has the proper sintax. Try displaying it using:
Msgbox(strFormula ) and verify sintax. You may want to post a larger portion
of your code in order to get a better feel of what may be causing the issue.


Michael Arch.


"RoBo" wrote:

Hello,

I have built a stringvariable in VBA with a VLOOKUP formula in it (the
tablearray refers to another file that has been input by a GetOpenFilename).
The ActiveCell.FormulaR1C1 = strFormula does not seem to work. How do I get
this
stringvariable substituted in the ActiveCell.FormulaR1C1 = ?
Thanks for your help and suggestions.

Ron

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
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( [email protected] Excel Discussion (Misc queries) 6 May 22nd 08 05:33 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
How to Revert to ActiveCell.Formula = format from ActiveCell.FormulaR1C1 = format Karthik Bhat - Bangalore[_2_] Excel Programming 1 May 9th 07 02:37 PM
SUBSTITUTE Steved Excel Worksheet Functions 4 June 2nd 06 06:51 PM
Substitute chr(39) Jos Vens[_2_] Excel Programming 5 December 27th 04 09:11 AM


All times are GMT +1. The time now is 12:01 PM.

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"