Tests Related to these posts:
http://www.excelfox.com/forum/showth...ll=1#post10131
Code:Option Explicit ' Some tests of passing codes between Forums and Word
Hello raghuprabhu
Welcome to excelfox
I do not fully understand your question.
For example you say … When I select an item in the form from the dropdown list …. ??
?? - I do not see any drop down list in your file.
For now I will just give you some ideas that may help you to go further yourself.
If you then still need some help, then I think you will need to explain a bit better exactly what you want.
If you or nobody else can help solve your problem, then I can take another look for you tomorrow:
I only have a little time now to give you some ideas… if no one else helps, and you still need help tomorrow, then please give more information about what you want, so that I can help further tomorrow
This is the test range that you have given: ( I have also enclosed your CurrentRegion
as given, for example by Range("A1").CurrentRegion )
_____ Workbook: Lists.xlsm ( Using Excel 2007 32 bit )
Worksheet: Sheet2
Row\Col A B C D E 1 Group Item Col A Item Col B 2 1ItemG11 ItemG11 3 1ItemG12 ItemG12 4 1ItemG13 ItemG13 5 1ItemG14 ItemG14 6 1ItemG15 7 1ItemG16 8 1ItemG17 9 1ItemG18 10 1ItemG19 11 2ItemG21 ItemG21 12 2ItemG22 ItemG22 13 2ItemG23 ItemG23 14 2ItemG24 ItemG24 15 2ItemG25 16 2ItemG26 17 2ItemG27 18 2ItemG28 19 2ItemG29 20 3ItemG31 ItemG31 21 3ItemG32 ItemG32 22 3ItemG33 ItemG33 23 3ItemG34 ItemG34 24 3ItemG35 25 3ItemG36 26 3ItemG37 27 3ItemG38 28 29
You wish to somehow get this sort of output , based on the above test data:
_____ Workbook: Lists.xlsm ( Using Excel 2007 32 bit )
Worksheet: Sheet1
Row\Col A B C 1 Name Item Comments 2Raghu ItemG11 3Vim ItemG16 Instead of ItemG16 use ItemG11 4Abhi ItemG21 5Bhanu ItemG25 Instead of ItemG25 use ItemG21 6John ItemG34 7Vicky ItemG35 Instead of ItemG35 use ItemG31
This is your explanation so far…._
_............... In sheet2 of the attached file, I have in column1 have group, column2 has items, column3 also has the same items, some of them missing.
When I select an item in the form from the dropdown list, I want the comment to be populated as shown. If the item selected from column2 is from group1 and is not in column3 then I want the comments column to be as shown.
In the next post I will give you some ideas….
https://wordtohtml.net/
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vOQApTgb
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vbihZ-7W
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vfmpSO0F
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vjfTJ7lX
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vmq-LHHz
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9c-vst3j_7i
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bwBqjIR5 Nj
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bwBw8El0 r5
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bwC63GbR uM
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bwC9fyKZ do
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bwCEn8DB Qe
https://www.youtube.com/watch?v=nVy4GAtkh7Q&lc=UgxJGNhWFZh2p5mK0XB4AaABAg.9bbxud383FI9bw0Bey8g QO
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
Bookmarks