Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamically hiding fields using VBA

Hi,

I have a tool that I have built using standard Excel functions with no
VBA. It is an in-depth tool that uses multiple vlookups to provide a
user friendly pricing tool. One sheet (Input Sheet) contains all the
input information via user selectable drop downs and the second uses
the information from the first to create a quote. I am trying to make
this more interactive and want to add the ability for certain fields
to appear and/or disappear on the input sheet based off of previous
selections. Here is an example of what I would want: User choose
option A in drop down 1. Because of this choice, drop down 2
appears. If user chose option 2 in A then drop down two would not
appear or potentially would appear with different information.

I am not sure how to do this with VBA. This is clearly a simple if/
then type problem, but I am a VBA novice and so am not sure where to
start. Any code snippets or links to places that have snippets would
be helpful.

TIA!

JL

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Dynamically hiding fields using VBA

On Mar 12, 8:20 am, "JayL" wrote:
Hi,

I have a tool that I have built using standard Excel functions with no
VBA. It is an in-depth tool that uses multiple vlookups to provide a
user friendly pricing tool. One sheet (Input Sheet) contains all the
input information via user selectable drop downs and the second uses
the information from the first to create a quote. I am trying to make
this more interactive and want to add the ability for certain fields
to appear and/or disappear on the input sheet based off of previous
selections. Here is an example of what I would want: User choose
option A in drop down 1. Because of this choice, drop down 2
appears. If user chose option 2 in A then drop down two would not
appear or potentially would appear with different information.

I am not sure how to do this with VBA. This is clearly a simple if/
then type problem, but I am a VBA novice and so am not sure where to
start. Any code snippets or links to places that have snippets would
be helpful.

TIA!

JL


JL,

There are a number of ways to do what you are talking about. If you
are a novice at VBA then I would recommend the following book:
Birnbaum, Duane. Microsoft Excel VBA Programming for the Absolute
Beginner, 2nd Edition. Thomson Course Technology: 2005. (ISBN:
1-59200-729-5) It's a great introduction to Excel VBA and you can get
it from Amazon or another book provider for cheap. It includes
numerous examples, and it includes a CD with all the source code to
the examples. It may seem like more material than you want for right
now, but this being said, reading through this book would be well
worth your time. If you're looking for something quicker, utilize VBE
Help and search "if statement" and find "Using If...Then...Else
Statements" and also search "case" and find "Select Case Statement."

Matt

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
Link PivotChart to PivotTable, whilst hiding fields clifgriffin Excel Discussion (Misc queries) 0 March 3rd 09 07:03 PM
fields names do not show in excel 2007 pivot table fields list marlo17 New Users to Excel 2 December 1st 08 01:25 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
Dynamically Hiding portions of a UserForm fly_fish_boy Excel Programming 0 March 14th 06 05:56 PM
About Hiding Fields in Pivot Tables bay Excel Discussion (Misc queries) 1 January 27th 05 01:51 PM


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