Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Prompt to Fill in Values

I have a list that has the following columns:
A = PO Number B= Status C= Description D= Sup. Sig E= Fin. Sig G= Man Sig
H=Pur Sig

I want to know if there's a Macro or something I could create that if Colum
B is filled with "Aproved" it checkes that columns D-E-F-G-H have a value and
if blank ask for the value to fill it in automatically not just do a prompt
requesting that the person fill it in manually. For example that a dialoge
box would pop-up with something like "Please Provide Sup. Sig: [Input Box
here]" and when entered column D would be filled with the input provided by
the user.

Thank you for your help.
--
Gabriel Camarena R.
Delphi Tijuana IT Support
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Prompt to Fill in Values

hello,
You really didn't specify at which point you would like the macro to
trigger but...
Right click on the sheet tab. select view code, and paste this in:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim irow As Variant
irow = ActiveCell.Offset(-1, 0).Row
If Range("B" & irow).Value = "Aproved" Then
If Range("D" & irow).Value = "" Then Range("D" & irow).Value =
InputBox("please enter " & Range("D1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("E" & irow).Value = "" Then Range("E" & irow).Value =
InputBox("please enter " & Range("E1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("F" & irow).Value = "" Then Range("F" & irow).Value =
InputBox("please enter " & Range("F1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("G" & irow).Value = "" Then Range("G" & irow).Value =
InputBox("please enter " & Range("G1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("H" & irow).Value = "" Then Range("H" & irow).Value =
InputBox("please enter " & Range("H1").Value)
End If
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Prompt to Fill in Values

That's what I needed.

Thank you again for your help.
--
Gabriel Camarena R.
Delphi Tijuana IT Support


"GTVT06" wrote:

hello,
You really didn't specify at which point you would like the macro to
trigger but...
Right click on the sheet tab. select view code, and paste this in:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim irow As Variant
irow = ActiveCell.Offset(-1, 0).Row
If Range("B" & irow).Value = "Aproved" Then
If Range("D" & irow).Value = "" Then Range("D" & irow).Value =
InputBox("please enter " & Range("D1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("E" & irow).Value = "" Then Range("E" & irow).Value =
InputBox("please enter " & Range("E1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("F" & irow).Value = "" Then Range("F" & irow).Value =
InputBox("please enter " & Range("F1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("G" & irow).Value = "" Then Range("G" & irow).Value =
InputBox("please enter " & Range("G1").Value)
End If
If Range("B" & irow).Value = "Aproved" Then
If Range("H" & irow).Value = "" Then Range("H" & irow).Value =
InputBox("please enter " & Range("H1").Value)
End If
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Prompt to Fill in Values

No problem. Glad I could help
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
Getting a prompt to automatically fill a cell Zahra Excel Discussion (Misc queries) 0 April 30th 08 09:13 PM
VBA for prompt to fill in the certain cell Frank Situmorang Excel Programming 7 June 13th 07 02:47 AM
How prompt Excel user to fill cell with text, i.e., proposal name Deb Excel Discussion (Misc queries) 5 June 5th 06 11:41 PM
Prompt before updating values Zubair Excel Worksheet Functions 0 January 15th 05 11:51 AM
User Prompt to Confirm Values Jamie Excel Programming 0 June 9th 04 09:02 PM


All times are GMT +1. The time now is 02:44 PM.

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"