Range("B1").Formula = "=(""TPR""&" "&TEXT(profitloss!B3,"mmmm")&" "&YEAR(profitloss!B3))"
This is the code I am trying to run. I know i have to use double apostrophes in places but I am unsure where and I can't seem to get it to work.
Thanks![]()
Range("B1").Formula = "=(""TPR""&" "&TEXT(profitloss!B3,"mmmm")&" "&YEAR(profitloss!B3))"
This is the code I am trying to run. I know i have to use double apostrophes in places but I am unsure where and I can't seem to get it to work.
Thanks![]()
Formula:![]()
Please Login or Register to view this content.
BSB
Hi,
Any quotation marks within the formula string must be doubled. The formula can also be simplified as you are formatting a date. Therefore the code could become
![]()
Please Login or Register to view this content.
Last edited by xlnitwit; 07-14-2016 at 08:01 AM.
Don
Please remember to mark your thread 'Solved' when appropriate.
thanks you both
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks