Hi,
I am looking for VB code for command button that fills two combo box
values and a toggle value (Y/N) behind each other in one cell.
Bart
Excel 2003
Hi,
I am looking for VB code for command button that fills two combo box
values and a toggle value (Y/N) behind each other in one cell.
Bart
Excel 2003
Last edited by vdongen; 10-05-2010 at 12:03 AM.
Hi it is actually like this:
I have to cells with data validation list=...
Then I have one toggle button that can have value Y or N.
Now, I am looking for a command button code that fills both three values into a cell range that I select with the mouse. Result is merged.
Choice 1 = Paris
Choice 2 = Car
Driver? Yes
Push button, asked for cell range then result:
Cell B1 - B5:
Paris Car Y
Bart
thik i know what you need
could you please attach a sample workbook?
Hi Pike, I have attached. The explanation is inside.
hi vdongen
merging cell will cause problems.
with the previous code (with comboboxes) it worked fine, you can still see two samples
I only wants to have the values from the Validation=list cells rather then comboboxes
Can you part with the merge cells
Pike, sorry, I don't know what you mean.
Here is the code I used for the combobox model that works fine, but I only want the source from the dropdown lists instead of combo.
Please Login or Register to view this content.
Last edited by pike; 10-02-2010 at 10:16 PM. Reason: correct tags
Hi vdongen
can you please edit your last post and add code tags
Last edited by pike; 10-02-2010 at 10:19 PM.
dude if you set the driver toggle button linked cell value to n3 then
Please Login or Register to view this content.
Hi Pike, thanks it works. I can fine tune when I know more about the solution you give me.
Two questions about text position:
You used " " for a space. What is the "enter" code, so the contents goes to the second line of the cell range? I tried to find in the VB Help but failed to get the understanding.
Sample:
Text A
Driver Text B Beamer
Possible to use align commands so text is placed either "centered", then on second line "left" / "centered" / "right"?
Hi vdongenthe
new line is
and alignmentPlease Login or Register to view this content.
but the merged cells will cause problemsPlease Login or Register to view this content.
Understood.
The merged cells contents is from two cell values D3 and H3.
Possible to replace the value for the last with the value that is asked by the user? (Same as: "Select A Range", but now "What is your location?" (input limited to 15 characters).
Btw, If I cancel the current "Select A Range" question then I get an VB error. I need an Ifthen statement as far as i know.
Hi vdongen,
would increasing the row height work?
Yes, that basically work, but it makes the sheet very high as there are many employees (you can unhide the rows).
I am still looking for user input question solution as not all values can be listed using validation/list.
Btw, canceling the current Range selection question gives an error.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks