# 한글2024 사용중입니다. 기존 매크로가 사용되지 않는 문제 해결이 가능할까요

**URL:** <https://forum.developer.hancom.com/t/topic/2582>\
**Category:** 웹한글 기안기\
**Created:** [6월 13, 2025, 10:29오전 UTC](https://forum.developer.hancom.com/t/topic/2582 "2025-06-13T10:29:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user461](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@user461](https://forum.developer.hancom.com/u/user461)\
**Post date:** [6월 13, 2025, 10:29오전 UTC](https://forum.developer.hancom.com/t/topic/2582/1 "2025-06-13T10:29:43Z")

</div>

기존에 쓰던 모든 스크립트 매크로가 3번 줄부터 오류가 난다고 하는데, 이걸 수정할 수 있는 방법이 있을까요.

10년 넘게 사용하던, 2천줄이 넘는 매크로인데 다시 만들려니 암담합니다.

function OnScriptMacro\_족보정리ver12()  
{  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
FindCharShape.UnderlineColor = 0;  
FindCharShape.UnderlineShape = HwpUnderlineShape(“Solid”);  
FindCharShape.UnderlineType = HwpUnderlineType(“Bottom”);  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “”;  
ReplaceStyle = “밑줄”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
FindCharShape.BorderFill.BorderTypeBottom = HwpLineType(“Solid”);  
FindCharShape.BorderFill.BorderTypeTop = HwpLineType(“Solid”);  
FindCharShape.BorderFill.BorderTypeRight = HwpLineType(“Solid”);  
FindCharShape.BorderFill.BorderTypeLeft = HwpLineType(“Solid”);  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “”;  
ReplaceStyle = “네모서식”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “zb 4”;  
ReplaceStyle = “지문(들여쓰기)”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “zb 3”;  
ReplaceStyle = “지문(들여쓰기)”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “지문(들여쓰기)”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “본문”;  
ReplaceStyle = “발문글”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “본문”;  
ReplaceStyle = “발문글”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “발문글”;  
ReplaceStyle = “발문글”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “zb 5”;  
ReplaceStyle = “선택지”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “선택지”;  
ReplaceStyle = “선택지”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “zb 1”;  
ReplaceStyle = “문제”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “문제”;  
ReplaceStyle = “문제”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “”;  
ReplaceString = “”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “보기(들여쓰기)”;  
ReplaceStyle = “보기(들여쓰기)”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“DeleteCtrls”, HParameterSet.HDeleteCtrls.HSet);  
with (HParameterSet.HDeleteCtrls)  
{  
CreateItemArray(“DeleteCtrlType”, 1);  
DeleteCtrlType.Item(0) = 17;  
DeleteCtrlType.Item(1) = 37;  
}  
HAction.Execute(“DeleteCtrls”, HParameterSet.HDeleteCtrls.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “^t”;  
ReplaceString = " ";  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉠”;  
ReplaceString = “㉠^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉡”;  
ReplaceString = “㉡^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉢”;  
ReplaceString = “㉢^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉣”;  
ReplaceString = “㉣^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉤”;  
ReplaceString = “㉤^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉥”;  
ReplaceString = “㉥^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉦”;  
ReplaceString = “㉦^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉧”;  
ReplaceString = “㉧^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉨”;  
ReplaceString = “㉨^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉩”;  
ReplaceString = “㉩^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉪”;  
ReplaceString = “㉪^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉫”;  
ReplaceString = “㉫^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉬”;  
ReplaceString = “㉬^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉭”;  
ReplaceString = “㉭^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉮”;  
ReplaceString = “㉮^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉯”;  
ReplaceString = “㉯^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉰”;  
ReplaceString = “㉰^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet); HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉱”;  
ReplaceString = “㉱^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉲”;  
ReplaceString = “㉲^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉳”;  
ReplaceString = “㉳^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉴”;  
ReplaceString = “㉴^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉵”;  
ReplaceString = “㉵^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉶”;  
ReplaceString = “㉶^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉷”;  
ReplaceString = “㉷^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉸”;  
ReplaceString = “㉸^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉹”;  
ReplaceString = “㉹^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉺”;  
ReplaceString = “㉺^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “㉻”;  
ReplaceString = “㉻^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “ⓐ”;  
ReplaceString = “ⓐ^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “Ⓐ”;  
ReplaceString = “Ⓐ^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}  
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);  
HAction.GetDefault(“AllReplace”, HParameterSet.HFindReplace.HSet);  
with (HParameterSet.HFindReplace)  
{  
MatchCase = 0;  
AllWordForms = 0;  
SeveralWords = 0;  
UseWildCards = 0;  
WholeWordOnly = 0;  
AutoSpell = 0;  
Direction = FindDir(“AllDoc”);  
IgnoreFindString = 0;  
IgnoreReplaceString = 0;  
FindString = “ⓑ”;  
ReplaceString = “ⓑ^s”;  
ReplaceMode = 1;  
IgnoreMessage = 1;  
HanjaFromHangul = 0;  
FindJaso = 0;  
FindRegExp = 0;  
FindStyle = “지문(들여쓰기)”;  
ReplaceStyle = “”;  
FindType = 1;  
}   
HAction.Execute(“AllReplace”, HParameterSet.HFindReplace.HSet);

}

---

<div class="post-metadata">

**Author:** ![user461](https://avatars.discourse-cdn.com/v4/letter/u/ecd19e/32.png) [@user461](https://forum.developer.hancom.com/u/user461)\
**Post date:** [6월 13, 2025, 10:56오전 UTC](https://forum.developer.hancom.com/t/topic/2582/2 "2025-06-13T10:56:18Z")

</div>

아래 방법으로 해결했네요.

1. C:\User\사용자 계정\AppData\Roaming 폴더 안 HNC 폴더 삭제

2. 윈도우 시작 버튼 클릭 \> 프로그램 목록 중 \> 한글과 컴퓨터 \> 한컴오피스 20XX \> 한컴 기본설정 \> 기본값으로 설정 후 종료

출처: [gadasi's Blog :: 한글과컴퓨터 매크로 오류 해결 - 스크립트 분석에 오류가 발생했습니다](https://gadasi.tistory.com/entry/123-2) [gadasi’s Blog:티스토리]
