ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Fully defined formula links? (https://www.excelbanter.com/excel-programming/377428-fully-defined-formula-links.html)

Peter Chatterton[_4_]

Fully defined formula links?
 
Can I force Excel to fully define formula links?

e.g. I want it to define a Cell, which is the product to two others as:
=currentSheet!A42*currentSheet!B52
instead of just:
=A42*B52

Trouble is I don't know how the worksheet is being created, so I need an
option to tell Excel what to do.

Thanks,
Peter



Peter T

Fully defined formula links?
 
Hi Peter,

Do you mean you are adding a sheet with code then also with code want write
a formula on some other sheet that refers to the new activesheet. If so for
the sheet name part

"'" & activesheet.name & "'!" & "etc"

there are apostrophes in the quotes.

Regards,
Peter T

"Peter Chatterton" wrote in message
...
Can I force Excel to fully define formula links?

e.g. I want it to define a Cell, which is the product to two others as:
=currentSheet!A42*currentSheet!B52
instead of just:
=A42*B52

Trouble is I don't know how the worksheet is being created, so I need an
option to tell Excel what to do.

Thanks,
Peter






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

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