Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help with form logic

I'm creating a FORM in EXCEL. In the form, the user will select a drop down
list of 4 items, "Screen 1, Screen 2, Screen 3, Screen 4". When the select
which screen they want, I need to create a data entry field for them with
restrictions on the number of lines and characters per line. i.e. if they
select Screen 1, they receive a data entry field of 4 lines x 26 characters.
(i could use a character max if necessary as oppose to lines and characters.
If they select Screen 2, they receive a data entry field of 2 lines x 12
characters, and so forth.

I've been playing with data validation and using IF statements trying to
pull from a sub worksheet, but to no avail. I'm not big on programming in
EXCEL or even know if this is possible. Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Need help with form logic

Something like this?

With Worksheets("Sheet1").Range("H1")
.Validation.Delete
Select Case Listbox1.Value
Case "Sheet1":
.Validation.Add Type:=xlValidateList, _
AlertStyle:=xlValidAlertStop, _
Formula1:="=A1:A10"
Case "Sheet2":
.Validation.Add Type:=xlValidateList, _
AlertStyle:=xlValidAlertStop, _
Formula1:="=A1:A26"
'etc.
End Select
End With


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jersey Guy" <Jersey wrote in message
...
I'm creating a FORM in EXCEL. In the form, the user will select a drop

down
list of 4 items, "Screen 1, Screen 2, Screen 3, Screen 4". When the select
which screen they want, I need to create a data entry field for them with
restrictions on the number of lines and characters per line. i.e. if they
select Screen 1, they receive a data entry field of 4 lines x 26

characters.
(i could use a character max if necessary as oppose to lines and

characters.
If they select Screen 2, they receive a data entry field of 2 lines x 12
characters, and so forth.

I've been playing with data validation and using IF statements trying to
pull from a sub worksheet, but to no avail. I'm not big on programming in
EXCEL or even know if this is possible. Any help would be appreciated.



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
More if then logic DJ Excel Worksheet Functions 2 October 8th 09 05:37 PM
How do you assess the state of a form-checkbox in a logic statemen jvatlanta Excel Worksheet Functions 1 August 4th 09 05:13 PM
I Then logic help robnet Excel Worksheet Functions 4 July 13th 07 10:08 PM
IRR Logic Carrie Excel Worksheet Functions 2 November 18th 05 08:59 PM
Can't get the logic right Mr. Clean[_2_] Excel Programming 9 December 29th 03 04:22 PM


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