Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel and Visual Basic

I was wondering if its possilbe to insert a action using visual basic
if a condition is not meet.

Column B4 (Degree)
1. Doctor of Business Administration
2. Master of Arts

Column C4 (Major)
1. Business Administration
2. Master of Arts

I would like to see Column C4 (Major) to read
1.
2. Master of Arts.

I would like to restirct the end user from entering anything in Column
C4 if Degree is equal to Doctor of Business Administration.

Thank you for your assistance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Excel and Visual Basic

On Dec 7, 1:00*pm, Deb wrote:
I was wondering if its possilbe to insert a action using visual basic
if a condition is not meet.

Column B4 (Degree)
1. Doctor of Business Administration
2. Master of Arts

Column C4 (Major)
1. Business Administration
2. Master of Arts

I would like to see *Column C4 (Major) to read
1.
2. Master of Arts.

I would like to restirct the end user from entering anything in Column
C4 if Degree is equal to Doctor of Business Administration.

Thank you for your assistance


Hard to figure exactly what you want.

Send your file with a complete explanation and before/after examples
to dguillett1 @gmail.com
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Excel and Visual Basic

On Dec 7, 1:45*pm, Don Guillett wrote:
On Dec 7, 1:00*pm, Deb wrote:









I was wondering if its possilbe to insert a action using visual basic
if a condition is not meet.


Column B4 (Degree)
1. Doctor of Business Administration
2. Master of Arts


Column C4 (Major)
1. Business Administration
2. Master of Arts


I would like to see *Column C4 (Major) to read
1.
2. Master of Arts.


I would like to restirct the end user from entering anything in Column
C4 if Degree is equal to Doctor of Business Administration.


Thank you for your assistance


Hard to figure exactly *what you want.

Send your file with a complete explanation and before/after examples
to dguillett1 * * *


Private Sub Worksheet_Change(ByVal Target As Range)If Target.Count 1
Or Target.Column < 4 Then Exit SubIf Target.Offset(, -1) = "Doctor of
Business Administration" Then Target = ""
End Sub
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
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
Visual BASIC in Excel Emerogork via OfficeKB.com Excel Worksheet Functions 1 August 27th 07 07:06 PM
Visual BASIC in Excel Emerogork via OfficeKB.com Excel Worksheet Functions 1 August 27th 07 04:53 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
visual basic in excel - DKehl Excel Discussion (Misc queries) 2 March 23rd 05 07:23 PM


All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"