Numbers reference cell keep formatting
Hi - I'm looking for a way to keep the formatting of a reference cell when it is applied to another cell. For example, if cell A1 has a background color, and the font is bold, then if I use the formula =A1 in another cell it should also be that background color / bold.
In excel you can do this with a VBA script something like this:
Private Sub Worksheet_Activate()
'UpdatebyExtendoffice20101024
Application.EnableEvents = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Or Target.Value = "" Then Exit Sub
Application.EnableEvents = False
If Not Intersect(Target, Range("A1")) Is Nothing Then 'Range("A1") the reference cell
Target.Copy
ActiveWorkbook.Sheets("Sheet2").Range("B1").PasteSpecial xlPasteAllUsingSourceTheme
'Range("B1")the cell linked to reference cell,ActiveWorkbook.Sheets("Sheet2")the sheet which contains linked cell
Application.CutCopyMode = False
Target.Select
End If
Application.EnableEvents = True
End Sub
Can I do something similar using AppleScript in numbers? I'm not a programmer at all so would need a specific formula to cut/paste- thanks!
iMac 27″ 5K, macOS 10.15