ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Quick Question??? (https://www.excelbanter.com/excel-programming/313086-quick-question.html)

hemants[_4_]

Quick Question???
 

can i use macro's in cells on a worksheet? If possible, how would
type it out.

i.e. in cell G5 = (activecell.value = G1&"!$G$4")

or something to that effect without havnig to create a macro

--
hemant
-----------------------------------------------------------------------
hemants's Profile: http://www.excelforum.com/member.php...fo&userid=1503
View this thread: http://www.excelforum.com/showthread.php?threadid=26797


Bob Phillips[_6_]

Quick Question???
 
You cannot call a macro from a cell, only a function which will return a
result.

However, from your example what you seem to need in G5 is simply

= INDIRECT(G1&"!$G$4")

--

HTH

RP

"hemants" wrote in message
...

can i use macro's in cells on a worksheet? If possible, how would i
type it out.

i.e. in cell G5 = (activecell.value = G1&"!$G$4")

or something to that effect without havnig to create a macro.


--
hemants
------------------------------------------------------------------------
hemants's Profile:

http://www.excelforum.com/member.php...o&userid=15031
View this thread: http://www.excelforum.com/showthread...hreadid=267973





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

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