ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Link Cell to Label Caption (https://www.excelbanter.com/excel-discussion-misc-queries/78669-link-cell-label-caption.html)

papaitaliano

Link Cell to Label Caption
 

So, I want Cell A1 to equal the value in lbl1.Caption. I tried:


Code:
--------------------
=lbl1.Caption
--------------------


but obviously that didn't work. Any ideas?


--
papaitaliano
------------------------------------------------------------------------
papaitaliano's Profile: http://www.excelforum.com/member.php...o&userid=32680
View this thread: http://www.excelforum.com/showthread...hreadid=524861


Dave Peterson

Link Cell to Label Caption
 
activesheet.range("a1").value = lbl1.caption

maybe???



papaitaliano wrote:

So, I want Cell A1 to equal the value in lbl1.Caption. I tried:

Code:
--------------------
=lbl1.Caption
--------------------


but obviously that didn't work. Any ideas?

--
papaitaliano
------------------------------------------------------------------------
papaitaliano's Profile: http://www.excelforum.com/member.php...o&userid=32680
View this thread: http://www.excelforum.com/showthread...hreadid=524861


--

Dave Peterson


All times are GMT +1. The time now is 05:15 PM.

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