ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Label caption (https://www.excelbanter.com/excel-programming/416448-label-caption.html)

eggpap

Label caption
 
Hello,

I have a workbook, see also my previous message, with labels on some sheets
whose caption I'ld like to control with some udfs. I know that udfs don't
allow
to control the formatting or the values of a ws cell, but is this also true
for the
toolbox controls? In my case I have the label captions modified sometime yes
and sometime not. Any tip?

Emiliano



RyanH

Label caption
 
You can change values of cells from a function. The main purpose of
functions is to seamlessly pass values from one sub to the next.
--
Cheers,
Ryan


"eggpap" wrote:

Hello,

I have a workbook, see also my previous message, with labels on some sheets
whose caption I'ld like to control with some udfs. I know that udfs don't
allow
to control the formatting or the values of a ws cell, but is this also true
for the
toolbox controls? In my case I have the label captions modified sometime yes
and sometime not. Any tip?

Emiliano




Jim Thomlinson

Label caption
 
Assuming that conditional formatting will not allow you enough ability to
change the format of the labels then you can use event code such as sheet
change to format cells (or controls) as necessary.
--
HTH...

Jim Thomlinson


"eggpap" wrote:

Hello,

I have a workbook, see also my previous message, with labels on some sheets
whose caption I'ld like to control with some udfs. I know that udfs don't
allow
to control the formatting or the values of a ws cell, but is this also true
for the
toolbox controls? In my case I have the label captions modified sometime yes
and sometime not. Any tip?

Emiliano





All times are GMT +1. The time now is 04:10 AM.

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