PC Review


Reply
Thread Tools Rate Thread

Allow programmation in a userform

 
 
Alex St-Pierre
Guest
Posts: n/a
 
      4th Jun 2009
Hi!
I would like to automate a process. I have a sheet1 that contains data (one
row for each member). The first row is a standard column header. I would like
to have a tool that allow user to construct a sheet2 from sheet1 by putting
condition in a userform. The sheet2 will also contains a column header. Does
anyone have an idea ?

What I think is :
1. At all opening of the userform, I create a module that contains all
header name of the sheet1 and all header name of the sheet2. If a new column
header is added in sheet2, the information will automatically be available in
the userform.
ex:
Public Type vInputStructure
SSN As Long
LNAME As String
FNAME As string
SERVICE As variant
End Type
Public vInput As vInputStructre

Public Type vOutputStructure
SSNKEY As Long
LASTNAME As String
FIRSTNAME As string
SERV1 As Variant
End Type
Public vOutput As vOutputStructre

2. In the userform,
a) You select the field you want to change
b) You select which record to process
c) You define the value that a) will take

3. Example.

Field to Change : vOutput.SSNKEY
For: (all)
Value: vInput.SSN

Field to Change : vOutput.SERV1
For: (all)
Value: vInput.SERVICE

Field to Change : vOutput.SERV1
For: SSN=123456789
Value: vOutput.SERV1+2

more complicated
Field to Change : vOutput.SERV1
For: (vOutput.SERV1>10 AND vOutput.SSNKEY<>123456789)
Value: vOutput.SERV1+vOutput.OTHERSERVICE

I could stock all formulas in the first column of a conditionsheet. Also,
the programmation could be done by clicking on item button like "(" "AND"
"OR" "vOutput.SERV1", etc.
Does anyone know if there's a way to do that in excel ?
Thank's a lot!
Alex
--
Alex St-Pierre
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question en programmation ! batteoui@gmail.com Microsoft VB .NET 2 10th May 2006 06:01 AM
Share a Folder by Programmation =?Utf-8?B?RnJhbmt5?= Microsoft C# .NET 2 19th Feb 2005 11:29 AM
programmation supranormale Microsoft Powerpoint 2 25th Mar 2004 09:41 PM
Programmation simple fabrice.bernhardt Microsoft Powerpoint 0 12th Oct 2003 05:00 PM
mot de passe (programmation) leon Microsoft Excel Programming 0 10th Sep 2003 10:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 AM.