ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to Insert Changes the Formula (https://www.excelbanter.com/excel-programming/423549-re-macro-insert-changes-formula.html)

JE McGimpsey

Macro to Insert Changes the Formula
 
Because by using the .FormulaR1C1 property, you've told VBA that the
range references will be of R1C1 form, not A1 form.

You can either use .Formula, or you can modify the ranges to R1C1

In article
,
Dow wrote:

Why does it convert the range to F:(F)? And how can I fix it?


Dow

Macro to Insert Changes the Formula
 
I knew it would be something obvious. I feel like an idiot now.

Thank you very much for your help.



On Feb 6, 9:07*am, JE McGimpsey wrote:
Because by using the .FormulaR1C1 property, you've told VBA that the
range references will be of R1C1 form, not A1 form.

You can either use .Formula, or you can modify the ranges to R1C1

In article
,



All times are GMT +1. The time now is 09:47 AM.

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