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 Using variable names in formula

I have a formula that is entered by VBA.

It obtains parameters from a dialog that is displayed to
the user.

Formula entered manually would be:
Range("A8").FormulaArray = "=PISampDat(Parameters!
R2C6,""*-12h"",""*"",""1m"", 1,""PIPV"")"

Formula entered by VBA needs to have the variable names:
12h would be a concantenation of two variables...
txtDuration.Value & Combobox3.Value

1m would also be a concantenation of two variables...
txtInterval.Value & Combobox2.Value

How do I substitute the variable names into the formula
mess.
 
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
Variable file names Paul Peterson - Velox Consulting, LLC Excel Discussion (Misc queries) 8 February 4th 10 01:54 PM
variable file names Brettjg Excel Discussion (Misc queries) 2 March 2nd 07 10:56 AM
Variable Names in Formulas Paulo Excel Discussion (Misc queries) 2 March 29th 06 01:16 PM
Variable names in SQL Hall Excel Programming 2 May 28th 04 11:39 PM
Combining variable names Bernie Gaile Excel Programming 2 December 28th 03 09:24 PM


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