Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not just one button?
Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Due to the way the spreadsheet is organized and what the function mulby
does, it needs to be seperate buttons for every value given. Die_Another_Day wrote: Why not just one button? Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just to elaborate, I originally had one button, but when I submitted it
for review, people generally didn't like how that worked... they wanted multiple buttons so they didn't have to think/type. This is the best implementation I can think of for what was requested. mazzarin wrote: Due to the way the spreadsheet is organized and what the function mulby does, it needs to be seperate buttons for every value given. Die_Another_Day wrote: Why not just one button? Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What about using the before double-click event? Then all your lazy
users have to do is double click the cell they want. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, Range("L15:L21")) Is Nothing Then If Target.Value < "" Then Call Mulby(Target.Value) End If End If End Sub if that doesn't work let me know when you want to create the buttons and I will help you write the code. Die_Another_Day mazzarin wrote: Just to elaborate, I originally had one button, but when I submitted it for review, people generally didn't like how that worked... they wanted multiple buttons so they didn't have to think/type. This is the best implementation I can think of for what was requested. mazzarin wrote: Due to the way the spreadsheet is organized and what the function mulby does, it needs to be seperate buttons for every value given. Die_Another_Day wrote: Why not just one button? Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That works! Hopefully everything goes well now.
Thanks. Die_Another_Day wrote: What about using the before double-click event? Then all your lazy users have to do is double click the cell they want. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, Range("L15:L21")) Is Nothing Then If Target.Value < "" Then Call Mulby(Target.Value) End If End If End Sub if that doesn't work let me know when you want to create the buttons and I will help you write the code. Die_Another_Day mazzarin wrote: Just to elaborate, I originally had one button, but when I submitted it for review, people generally didn't like how that worked... they wanted multiple buttons so they didn't have to think/type. This is the best implementation I can think of for what was requested. mazzarin wrote: Due to the way the spreadsheet is organized and what the function mulby does, it needs to be seperate buttons for every value given. Die_Another_Day wrote: Why not just one button? Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That works! Hopefully everything goes well now.
Thanks. Die_Another_Day wrote: What about using the before double-click event? Then all your lazy users have to do is double click the cell they want. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, Range("L15:L21")) Is Nothing Then If Target.Value < "" Then Call Mulby(Target.Value) End If End If End Sub if that doesn't work let me know when you want to create the buttons and I will help you write the code. Die_Another_Day mazzarin wrote: Just to elaborate, I originally had one button, but when I submitted it for review, people generally didn't like how that worked... they wanted multiple buttons so they didn't have to think/type. This is the best implementation I can think of for what was requested. mazzarin wrote: Due to the way the spreadsheet is organized and what the function mulby does, it needs to be seperate buttons for every value given. Die_Another_Day wrote: Why not just one button? Sub ButtonMacro() Call mulby(ActiveCell.Value) End Sub HTH Die_Another_Day mazzarin wrote: Hi, I have a column of numbers in an excel sheet. They can be any set of numbers, but only within the range L15:L21 Is it possible, for every non-empty cell (maybe on error resume next?), to create a button on top of the cell with the caption set as the number IN the cell, and for it to call a script mulby(cell.value here) Thanks for any assistance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic creation, or something different needed? | Excel Worksheet Functions | |||
Dynamic Formula Creation?? | Excel Discussion (Misc queries) | |||
ASP Dynamic Excel Creation | Excel Programming | |||
Dynamic Control Creation in VBA | Excel Programming | |||
Dynamic Creation of borders | Excel Programming |