ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Controling cell references in formulas written from VBA (https://www.excelbanter.com/excel-programming/276860-re-controling-cell-references-formulas-written-vba.html)

Ken Dahlberg

Controling cell references in formulas written from VBA
 
John,
No, and that was the problem. The form was called from a click event
handler on an embedded chart. When I selected a cell in the form
code, everything worked OK. Then after the formula was written, I
re-selected the chart object.
Thanks.

"jaf" wrote in message ...
Hi Ken,
Both a Worksheet_Activate event module and an embedded CommandButton on a
worksheet would tell Excel what the active sheet is by default. Are you
activating the worksheet in your form code?



All times are GMT +1. The time now is 09:56 PM.

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