I am trying to make a convert button in cell a1 to convert any inputed value in b6 back and forth from in to mm.
I am trying to make a convert button in cell a1 to convert any inputed value in b6 back and forth from in to mm.
I would put a dropdown in C6 (in or mm) and have B6 for numerical entry only
Then the button macro can beDoes that work for you?![]()
Please Login or Register to view this content.
Last edited by ChemistB; 08-18-2015 at 11:56 AM. Reason: Opps mm
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
I am not familiar with VBA and Macros. Your formula works if play the macro. How can I get it to automatically update when the drop-down is changed?
Right click on the sheet tab and "View Code" Paste this in. Modify the range in the intersect to match your sheet.
The code is triggered if either B2 or C2 is changed.![]()
Please Login or Register to view this content.
Thank you for the replies, the worksheet you sent works but I am unable to modify your code to work on my work sheet. If youhave time, here is a copy of what i am trying to do. I would like the value in cell I10 to automatically change back and forth when the drop down in N10 is changed.
Okay, so whatever number it is now, it will switch to the equivalent in the other system.
So it's set to 1 now and inches. If I switch to mm, you want it to switch to 25.4 (approximately), yes?
Yes, and if changed to another value other than 1, it should still be able to convert.
Okay, here is the code and here is the workbook.
I assume you have specific tool diameters you can work with? I would suggest that I10 be a dependent dropdown menu. If N10 = inches, the dropdown has a list of available inches, In N10 = mm, the dropdown has a list of avialble mm diameters. Does that make sense?![]()
Please Login or Register to view this content.
No specific tool diameters. Is there any way to prevent multiple calculations if the selection is not changed. If the selection in mm and I select mm again, the macro runs.
Replace the current code with this code
Does that work?![]()
Please Login or Register to view this content.
Yes, Perfect. Thank You!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks