How to disable Merg cell in a sheet in excel?

If you have  a list record and have many user use it for data entry.
You don't want user to merg cell in that Sheet.

This is the solution :
1.Save your excel as Macro enable file type (*.xlsm).
2.Go to Developer tap  and click VB code.
3.Find the sheet you want to disable merg cell.
4.Then copy the Code below to that Sheet (vb code)

 Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Count > 1 Then Target.Cells(1).Select
End Sub


 5.Save and Test.


Other method is

1.Please go to review tab in excel  and Share workbook .
So your excel will  gray out of Merge excel icon in the work sheet.


Comments

Popular posts from this blog

រូបគំនូរប្រវត្តិសាស្ត្រ ជាច្រើននៅលើជញ្ជាំងព្រះវិហារ វត្តកំពង់ធំត្រូវបានគេបង្ហាញ ក្រោយពេលវាយកំទេចចោលរាបស្មើដី

ធ្លាក់សពណ៌ត្នោត មានន័យដូចម្តេច? ស្ត្រីគ្រប់រូបគួរដឹងពីឥឡូវនេះ

ចៀសវាង ៧ចំណុចនេះពេលកក់សក់ បើមិនចង់អោយសក់ខូច