Hello,
I have a bulleted list of various treatment options which changes depending on the parameters entered. The bullets are derived using VBA code and output into a single Excel spreadsheet cell. The list bullets are each on a separate line using the vbNewLine code, e.g., (the code has been simplified for clarity):
"RECOMMEND TREATMENT OPTIONS:" _
& vbNewLine & "° " & " ounces juice or regular pop," _
& vbNewLine & "° OR " & " tablespoon" & TBSP & " jelly or sugar," _
& vbNewLine & "° OR " & " tube" & TUBES & " glucose gel."
There can be anywhere from 3 to 6 bullets in any particular list. I would like to have a macro insert a checkbox in front of or in place each of the bullet symbols.
I have this macro: ActiveSheet.CheckBoxes.Add(50, 50, 10, 20).Select
which works but inserts the checkbox in an absolute position relative to the spreadsheet. What I was hoping for was code that would 'float' the checkboxes and attach each to a bullet point in a relative position since the number of bullets in the cell is variable and the height of the cell itself also varies based on the content of the row above it.
What I was hoping for was something that would look like this (where the ° symbol represents a checkbox):
RECOMMEND TREATMENT OPTIONS:
° 6 ounces juice or regular pop,
° OR 1 tablespoon jelly or sugar,
° OR 1 tube glucose gel.
Many thanks in advance for your time, effort and expertise.
I have a bulleted list of various treatment options which changes depending on the parameters entered. The bullets are derived using VBA code and output into a single Excel spreadsheet cell. The list bullets are each on a separate line using the vbNewLine code, e.g., (the code has been simplified for clarity):
"RECOMMEND TREATMENT OPTIONS:" _
& vbNewLine & "° " & " ounces juice or regular pop," _
& vbNewLine & "° OR " & " tablespoon" & TBSP & " jelly or sugar," _
& vbNewLine & "° OR " & " tube" & TUBES & " glucose gel."
There can be anywhere from 3 to 6 bullets in any particular list. I would like to have a macro insert a checkbox in front of or in place each of the bullet symbols.
I have this macro: ActiveSheet.CheckBoxes.Add(50, 50, 10, 20).Select
which works but inserts the checkbox in an absolute position relative to the spreadsheet. What I was hoping for was code that would 'float' the checkboxes and attach each to a bullet point in a relative position since the number of bullets in the cell is variable and the height of the cell itself also varies based on the content of the row above it.
What I was hoping for was something that would look like this (where the ° symbol represents a checkbox):
RECOMMEND TREATMENT OPTIONS:
° 6 ounces juice or regular pop,
° OR 1 tablespoon jelly or sugar,
° OR 1 tube glucose gel.
Many thanks in advance for your time, effort and expertise.