PHP Code:
Sub BB_Table_Clipboard()
   
    
Dim BB_Row As RangeBB_Cells As RangeBB_Range As Range
    Dim BB_Code 
As StringstrFontColour As StringstrBackColour As StringstrAlign As StringstrWidth As String
    
    Set BB_Range 
Selection
    BB_Code 
"[table=" """" "class:thin_grid" """" "]" vbNewLine
    BB_Code 
BB_Code "[tr][td][font=Wingdings]v[/font][/td]" vbNewLine
    
For Each BB_Cells In BB_Range.Rows(1).Cells
        strWidth 
Application.WorksheetFunction.RoundUp(BB_Cells.ColumnWidth 7.50)
        
BB_Code BB_Code "[td=" """" "bgcolor:#ECF0F0, align:center, width:" strWidth """" "][B]" Split(BB_Cells.Address"$")(1) & "[/B][/td]" vbNewLine
    Next BB_Cells