2017-12-01 4 views

답변

0

뭔가 : 트릭의 대부분

Option Explicit 

Sub CelltoComment() 

    Dim myCell As Range 

    For Each myCell In Columns(2).SpecialCells(2) 

     With myCell 
      .Value = "" 
      .AddComment 
      .Comment.Visible = False 
      .Comment.Text myCell.Offset(0, 1).Text 
     End With 
    Next myCell 

End Sub 

이 오프셋 (0,1)에 의해 이루어집니다 만 값으로 세포를 걸리는 다음 열 및 Columns(2).SpecialCells(2)을합니다. 수식이있는 셀이 있으면 피할 수 있습니다.

관련 문제