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 Showing Forms using a public variable


Hi,

I've hit a wall with a model I am currently building. It is a data
collection system for several metrics each of which has a different
number of componenets.

I have several data entry forms, one for each possible number of
components for a metric. They are named:
frm3PartDataEntry
frm4PartDataEntry etc..

The problem comes when I wish to show them. The user is selecting a
metric from a list box and hitting an enter data button. When they do
this I look up the number of components the metric they have selected
has and store this in a public variable NumberOfComponents.

I had hoped that to show the form, the following code would work:
frm & NumberOfComponents & PartDataEntry.Show

Sadly it won't compile, and aside from writing a horrible Select Case
I'm stumped as to what to do.

Any advice would be greatly appreciated.

Thanks in advance,

Adam


--
Adamaths
------------------------------------------------------------------------
Adamaths's Profile: http://www.excelforum.com/member.php...o&userid=31580
View this thread: http://www.excelforum.com/showthread...hreadid=512724

 
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
Public variable Jack New Users to Excel 4 March 18th 06 09:35 PM
Public string showing empty gaba Excel Programming 3 October 27th 04 01:33 AM
Public Variable Jason Excel Programming 4 April 12th 04 07:06 PM
Public/Procedure Variable Otto Moehrbach[_6_] Excel Programming 2 February 6th 04 04:58 PM
public variable marwan hefnawy Excel Programming 1 September 5th 03 08:54 AM


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