Thanks again, I've tried using center across selection, but the text is centered.
Thanks again, I've tried using center across selection, but the text is centered.
Hi, john_london,
if you monitor a cell which has a formula inserted you would need to apply the Calculate-event as that would be triggered on any calculation/change of formula. Workshet_change would need to monitor both cells which might be changed.
You might try to alter the code like
Ciao,![]()
'... With AutoFitRng .MergeCells = False Range(str01).Formula = "=IF(ISERROR(VLOOKUP(Data!$A$39, all_data, MATCH(selected_date, Data!$1:$1, 0), FALSE)), ""n/a"", (VLOOKUP(Data!$A$39, all_data, MATCH(selected_date, Data!$1:$1, 0), FALSE)))" Range(str01).Calculate CWidth = .Cells(1).ColumnWidth MergeWidth = 0 '...
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks