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: 138
Default Storing VBA Code In a Cell to Use real Time

I want to store multiple values in Column A and VBA Conditional Code in
Column B. The Conditional Code is just text and is just stored on the
worksheet. When a macro is run and a variable equals the value in column A
then the code stored in Column B executes inside the macro. For example, A1
= "ALLEX" and B1 = "If Not Left(route,1) = "K" . So, when the macro runs and
checks to see if "ALLEX" is in Column A. If so ,then it will use the
associated Condition: If Not Left(route,1) = "K". directly in the Macro.
So, if both conditions are true, "ALLEX" is found and Not Left(route,1) =
"K", then do something. I could "hardwire" that conditon in the Macro, but
there can be many different Values in Column A with different conditions and
I want the ability for the User to add values / conditions thru a User Form
rather than directly updating the VBA Code.
 
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
formula to place real time in a cell when data entered in an adjacent cell JasonK[_3_] Excel Programming 10 February 8th 10 11:22 PM
Storing real time data into Sql Server axwack Excel Programming 0 November 19th 07 03:10 AM
Scatter chart for real-time tracking of a single cell value ? [email protected] Charts and Charting in Excel 6 February 2nd 07 05:04 PM
storing real time data Meng Excel Discussion (Misc queries) 1 September 15th 06 04:58 AM
Showing length of active cell in real time jgoog Excel Programming 1 April 18th 06 11:02 PM


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