ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Place the caption of a toggle button into a cell (https://www.excelbanter.com/excel-worksheet-functions/25759-place-caption-toggle-button-into-cell.html)

[email protected]

Place the caption of a toggle button into a cell
 
Hello --

The caption of a toggle button on a form can have two values, depending
on the state of the button.

I want to use that value in another cell of the worksheet.

Is there a worksheet function or technique to do that?

Thanks for any help.

L Mehl


Chip Pearson

You need to use VBA.

Range("A1").Value = Sheet1.ToggleButton1.Caption




wrote in message
ups.com...
Hello --

The caption of a toggle button on a form can have two values,
depending
on the state of the button.

I want to use that value in another cell of the worksheet.

Is there a worksheet function or technique to do that?

Thanks for any help.

L Mehl




L Mehl

Chip --

Thank you. I wasn't "thinking outside the cell". I can put that code on
Worksheet_Activate() and achieve the result I want.

Larry



"Chip Pearson" wrote in message
...
You need to use VBA.

Range("A1").Value = Sheet1.ToggleButton1.Caption




wrote in message
ups.com...
Hello --

The caption of a toggle button on a form can have two values,
depending
on the state of the button.

I want to use that value in another cell of the worksheet.

Is there a worksheet function or technique to do that?

Thanks for any help.

L Mehl







All times are GMT +1. The time now is 04:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com