<o:smarttagtype namespaceuri="urn:schemas-microsoft-comffice:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-comffice:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]>******** classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> Hi,
I am looking for help in creation of this code.
This is Order Tracking workbook. In this workbook I have sheet named "PartsNeeded" with multiple cells as shown below:
ColA > Date
ColB > string
ColC > string
ColD> string
ColE > string
ColF> date
ColG>string
ColH>string
ColI>string
ColJ>value
There are additional columns after column J
ColE to ColI I will have manual data entry. ColH and ColI have pull down combo box with "Yes" or "No" selection. I need a VBA code which will do the following:
1. Will automatically populate ColJ cell with Number "4" if data is present in every cell in ColE to ColI
2. When data is entered in ColE to ColI after each entry message box will ask user if they want to Save changes and Prevent changes to those cells if the answer is “Yes”.
3. If there is no data is in ColE to ColI, populate ColJ with"0".
4. If data is in ColE only, then ColF must have value and both cells will change color to “Red”, ColJ will be "1". Those two columns E and F are considered as a set.
5. If Data is present in ColE and ColF and ColG, those cells to change color to “<st1:city w:st="on"><st1lace w:st="on">Orange</st1lace></st1:city>” and ColJ need "2".
6. If data is present in ColE, ColF, ColG and ColH, all 4 cells change color to “Yellow” and ColJ to "3" .
7. If ColJ value is "4", then the whole row will be “Green” and automatically be moved to sheet "OrderComplete”
<o> </o>
I have seen some pieces of code here and there, but I was not able to kludge it together correctly. I would like to have this as part of Workbook Change. <o></o>
Any help greatly appreciated.<o></o>
Thanks in advance.
sztom
<o></o>
I am looking for help in creation of this code.
This is Order Tracking workbook. In this workbook I have sheet named "PartsNeeded" with multiple cells as shown below:
ColA > Date
ColB > string
ColC > string
ColD> string
ColE > string
ColF> date
ColG>string
ColH>string
ColI>string
ColJ>value
There are additional columns after column J
ColE to ColI I will have manual data entry. ColH and ColI have pull down combo box with "Yes" or "No" selection. I need a VBA code which will do the following:
1. Will automatically populate ColJ cell with Number "4" if data is present in every cell in ColE to ColI
2. When data is entered in ColE to ColI after each entry message box will ask user if they want to Save changes and Prevent changes to those cells if the answer is “Yes”.
3. If there is no data is in ColE to ColI, populate ColJ with"0".
4. If data is in ColE only, then ColF must have value and both cells will change color to “Red”, ColJ will be "1". Those two columns E and F are considered as a set.
5. If Data is present in ColE and ColF and ColG, those cells to change color to “<st1:city w:st="on"><st1lace w:st="on">Orange</st1lace></st1:city>” and ColJ need "2".
6. If data is present in ColE, ColF, ColG and ColH, all 4 cells change color to “Yellow” and ColJ to "3" .
7. If ColJ value is "4", then the whole row will be “Green” and automatically be moved to sheet "OrderComplete”
<o> </o>
I have seen some pieces of code here and there, but I was not able to kludge it together correctly. I would like to have this as part of Workbook Change. <o></o>
Any help greatly appreciated.<o></o>
Thanks in advance.
sztom
<o></o>