Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Sunil Garg   on Jan 18 In MS Office Category.

  
Question Answered By: Alessio Smith   on Jan 18

For the first one try:
ActiveCell.FormulaR1C1 = "=CONCATENATE(TEXT(NOW(),""dd mmmm yyyy""),
"", "", CELL(""filename""))"

for the second use:
ActiveCell.Formula =
"=RIGHT(CELL(""filename"",A1),(LEN(CELL(""filename"",A1))-SEARCH(""]"",CELL(""fi\
lename"",A1))))"

It doesn't matter that you use 'FormulaR1C1' (rather than just
'Formula') in the first as you don't have any cell  references, but it
does matter in the second.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Compile error for new bit of code Or get search suggestion and latest updates.


Tagged: