# 안녕하세요 , 표 셀크기 조정이 잘 안되네요 ^^;;

**URL:** <https://forum.developer.hancom.com/t/topic/2005>\
**Category:** 한글 오토메이션\
**Created:** [12월 5, 2024, 5:20오전 UTC](https://forum.developer.hancom.com/t/topic/2005 "2024-12-05T05:20:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user168](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@user168](https://forum.developer.hancom.com/u/user168)\
**Post date:** [12월 5, 2024, 5:20오전 UTC](https://forum.developer.hancom.com/t/topic/2005/1 "2024-12-05T05:20:26Z")

</div>

아래와 같이 다 해봤는데 잘 안되요 ;  
작업하고 있는 한글 버전이 네오라. 스크립매크로로 기록한 동작은 안먹고 오리지널로 접근하고 있어요.~

act = CreateAction(‘TablePropertyDialog’);  
set = act.CreateSet();  
act.GetDefault(set);

//실패1  
set.SetItem(“Width”,MiliToHwpUnit(15.0));

//실패2  
[//wset=set.CreateItemSet](https://wset=set.CreateItemSet)(“ShapeTableCell”,“Width”)  
[//wset.SetItem](https://wset.SetItem)(“Width”,MiliToHwpUnit(25.0));

//실패3  
//tset = set.Item(“ShapeTableCell”);  
[//tset.SetItem](https://tset.SetItem)(“ShapeType”,3);  
[//tset.SetItem](https://tset.SetItem)(“ShapeCellSize”,1);  
[//tset.SetItem](https://tset.SetItem)(“Width”,MiliToHwpUnit(25.0));

act.Execute(set);

---

<div class="post-metadata">

**Author:** ![bhjung](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.developer.hancom.com/bhjung/32/259_2.png) [@bhjung](https://forum.developer.hancom.com/u/bhjung)\
**Post date:** [12월 5, 2024, 7:22오전 UTC](https://forum.developer.hancom.com/t/topic/2005/2 "2024-12-05T07:22:27Z")

</div>

안녕하세요 ^^  
TablePropertyDialog를 통해서 셀의 크기를 변경하려면 행이나 열이 블락상태로 선택이 되어야합니다.  
아래와 같이 선택후 해당 스크립트 실행시 셀이 줄어드는걸 스크립트로 확인해볼수 있습니다.  
감사합니다 ~!

 ![image](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/f/fb1be06ffe94a4c029ed72c05ffa50015f095667.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/a/ae15e525ba4136ba0ab2f6ed441f8daa5c42eab5.png)

---

<div class="post-metadata">

**Author:** ![user168](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@user168](https://forum.developer.hancom.com/u/user168)\
**Post date:** [12월 5, 2024, 7:26오전 UTC](https://forum.developer.hancom.com/t/topic/2005/3 "2024-12-05T07:26:46Z")

</div>

답변주셔서 감사드립니다, 잘 참고해서 활용해 보겠습니다. ^^
