abdelfattah
Well-known Member
- Joined
- May 3, 2019
- Messages
- 1,429
- Office Version
- 2019
- 2010
- Platform
- Windows
hello
i have this formula
the result shows in merged cell from a3:e3 i would this formula convert to code in event worksheet change
i want that because i have to hide column f where f5= text and f4=date i don't want see this formula i can hide this column but i don't find this way is practical i would this by code i try it but i failed to do that (note: if is possible to do that int merged cells from a3:e3 )
i have this formula
VBA Code:
=F5&""&TEXT(F4;"yyyy/mm/dd")
i want that because i have to hide column f where f5= text and f4=date i don't want see this formula i can hide this column but i don't find this way is practical i would this by code i try it but i failed to do that (note: if is possible to do that int merged cells from a3:e3 )
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Range("c3").Value = Text("inventory", yyyy / mm / dd)
End Sub