Forum Discussion
Need help with copy values in comma seperated data into another column conditionally
- Nov 24, 2021
Open your 'real' workbook and my sample workbook.
Press Alt+F11 to activate the Visual Basic Editor.
Look at the Project Explorer pane on the left hand side.
If necessary expand my sample workbook and then Modules under it.
You should see Module1:
Drag Module1 to your real workbook. This will copy the module, making the function available in your workbook.
You can view the code by double-clicking Module1.
HansVogelaar I've tried maybe tens of various ways to make it work. I'm missing something here I guess.
I want to mention something. The first file you attached as an answer both functions working properly. But this is just sample file. My target is to take this function and paste the original one to make it work. As you said the file includes VBA function that's why it worked actually. The thing makes me confusing is how did you write this function? İf I can reach it, then maybe I can write a VBA function for the original one as well. I'm talking as a beginner. Correct me please if I'm wrong.
Open your 'real' workbook and my sample workbook.
Press Alt+F11 to activate the Visual Basic Editor.
Look at the Project Explorer pane on the left hand side.
If necessary expand my sample workbook and then Modules under it.
You should see Module1:
Drag Module1 to your real workbook. This will copy the module, making the function available in your workbook.
You can view the code by double-clicking Module1.
- MecekaNov 25, 2021Copper Contributor
HansVogelaar Hi Hans,
After I run code, I realized there is something wrong with the code. Normally if there is a 'True' in A column, it should print the corresponding part( second item) in D column. Every time it's printing the first item in the D column to the C column.
Can you fix that?
- MecekaNov 24, 2021Copper ContributorYou guys are heroes! Thank you so much for your time, Hans.