반응형
원래 만든건 450라인 짜리 값을 읽어서 흐름도를 그리는건데 쓰기 힘들어서 일단 핵심만.. 포스팅
Dim ws As Worksheet
Set ws = Worksheets(ActiveSheet.Name)
Set CondBox = ws.Shapes.AddShape(msoShpeRoundedRectangle, stXPos, stYPos, 100, 50)
With CondBox
.Name = "CondBox"
.Fill.ForeColor.RGB = RGB(250,250,250)
.Line.ForColor.RGB = RGB(0,0,0)
.Line.Weight = 1
.Adjustments.Item(1) = 0.5
.TextFrame.Characters.Font.Color = 1
.TextFrame.Characters.Font.Size = 8
.TextFrame.Characters.Font.Text = "hello"
End With
LineType = msoConnectorElbow
stdir = 1
enddir = 3
Set conntor = ws.Shapes.AddConnector(LineType, 50, 50, 50, 50)
With conntor
.Name = "Line1"
.Line.EndArrowheadStyle = msoArrowheadTriangle
.ConnectorFormat.BeginConnect ws.Shapes("BoxName"), stDir
.ConnectorFormat.EndConnect ws.Shapes("BoxNam2"), EndDir
End With
Dim ws As Worksheet
Set ws = Worksheets(ActiveSheet.Name)
Set CondBox = ws.Shapes.AddShape(msoShpeRoundedRectangle, stXPos, stYPos, 100, 50)
With CondBox
.Name = "CondBox"
.Fill.ForeColor.RGB = RGB(250,250,250)
.Line.ForColor.RGB = RGB(0,0,0)
.Line.Weight = 1
.Adjustments.Item(1) = 0.5
.TextFrame.Characters.Font.Color = 1
.TextFrame.Characters.Font.Size = 8
.TextFrame.Characters.Font.Text = "hello"
End With
LineType = msoConnectorElbow
stdir = 1
enddir = 3
Set conntor = ws.Shapes.AddConnector(LineType, 50, 50, 50, 50)
With conntor
.Name = "Line1"
.Line.EndArrowheadStyle = msoArrowheadTriangle
.ConnectorFormat.BeginConnect ws.Shapes("BoxName"), stDir
.ConnectorFormat.EndConnect ws.Shapes("BoxNam2"), EndDir
End With
반응형
'TechNical > Windows' 카테고리의 다른 글
| WinSCP 업로드 스크립트 만들기 (0) | 2021.07.16 |
|---|---|
| 배치파일]가변 FTP실행명령 만들기~ (4) | 2011.05.09 |
| 프로그램 설치시 한글 계정이 문제가 된다면... (2) | 2010.03.23 |
| 대용량 디렉토리 삭제 할 때는... 커맨드창 원츄~ (0) | 2008.08.18 |
| MDAC 버전 확인 (0) | 2008.02.20 |
댓글