VBA Macro to Merge and Unmerge Cells - Excel VBA Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 7

  • @zchesiq
    @zchesiq 2 ปีที่แล้ว

    how are u able to retain the same format after the merge? i did mine and the formatting is not the same like the borders are gone

  • @archanaaa2514
    @archanaaa2514 4 ปีที่แล้ว +1

    Sir,, how to remove duplicates in data validation cell? Plse make videos on this

    • @ExcelDestination
      @ExcelDestination  4 ปีที่แล้ว

      There is already a tutorial to remove duplicate. Please check following link :
      th-cam.com/video/wIVNLRnyEuY/w-d-xo.html

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 4 ปีที่แล้ว +1

    Private Sub CommandButton1_Click()
    Worksheets("Sales").Range("B2":F2").Merge
    End
    So your merge code only works on B2 and F2 cells?

  • @archanaaa2514
    @archanaaa2514 4 ปีที่แล้ว

    Sir, if we want to merge multiple columns at 1 time what is d code for that?

  • @_Shorts_400
    @_Shorts_400 5 ปีที่แล้ว

    Please guide, how can the range be made relative instead of fixed.

    • @ExcelDestination
      @ExcelDestination  5 ปีที่แล้ว +1

      You can use dollor sign ($) to make any range fixed. For example, if you want to fix A1:A10, then you can write\use $A$1:$A$10....... one more example, if you want to sum data in Range A1:A10 and keep it fixed then use formula as =SUM($A$1:$A$10).......I hope this is helpful...for any other question write to exceldestination@gmail.com