Naver韩语词典/英语词典搜索工具_v1.02_20240201
我们正在分发带有一项附加功能的“Naver韩语词典/英语词典搜索工具_v1.02_20240201”。当搜索词出现拼写错误时,将输出结果的方法添加为选项,并根据该选项添加输出功能。
下面的文章总结了 Naver 韩语和英语词典搜索工具的概要以及它们的使用方法。
1. 要求
本周二(2024-01-30)发布了以下评论:
*评论网址: https://prodskill.com/naver-korean-english-dictionary-search-tool-update-20220708/#comment-387
2.反映内容
2.1.结果与搜索词不同的情况示例
如果 Naver 词典搜索词出现拼写错误,则会显示最接近词的搜索结果。例如,如果您搜索“premium”,建议将显示“Premium 的搜索结果”,并且 premium 的搜索结果将显示如下。
此时,确认Http Response JSON文件的内容包含以下数据。
2.2.添加选项并添加功能
添加了“即使结果与实际搜索词不同也显示结果”选项,如下所示。
当选择此选项时,结果显示与之前版本(v1.01)相同,当不选择时,增加了一个功能,以便在结果中显示“#NOT FOUND#”。
帮助内容中还添加了选项说明,如下所示。

2.3.执行结果示例
如果您选择并运行“即使结果与实际搜索词不同也显示结果”选项,搜索结果将显示与之前版本(v1.01)相同的内容,并且附加搜索结果将显示在 H 列( “实际搜索词”)。
如果您在没有选择“即使结果与实际搜索词不同也显示结果”选项的情况下运行它,则搜索结果中会显示“#NOT FOUND#”。结果显示在 H 列(“实际搜索词”)中。附加搜索无论选项如何,术语总是输出。
3. 下载
从下面的github选择并下载“Naver韩语词典、英语词典搜索工具_v1.02_20240201.xlsm”文件,或
https://github.com/DAToolset/ToolsForDataStandard
或者,您可以直接从此 URL 下载。
https://github.com/DAToolset/ToolsForDataStandard/blob/main/Naver 韩语词典 英语词典搜索工具_v1.02_20240201.xlsm
你好,非常感谢你帮助我学习英语。其实我想问一下是否可以这样修改。
在英语单词中,不仅第一个含义很重要,2 3 4 5 6 的含义也很重要,但很多情况下,解析的牛津词典缺少第 3 个 4 5 6 的含义,或者有动词的含义但只有动词的含义名词形式的含义等。事实上,Dong-A Publishing或Supreme等词典有时需要看。
最右边一栏有一个按年级的意义视图,你看这个,一下子就能看到第1个及以上的意义,请问是否可以用这个按年级的意义视图刮的意思。
谢谢你一直以来。我也刚刚开始学习VBA。我为总是问问题感到抱歉。谢谢
你好很高兴见到你。
感谢您的好评。
我得测试一下,看看能不能得到“查看各个等级的含义”的内容。
这需要一段时间,因为这些天我很难找到时间。
我会测试它,看看是否可行并发表评论。
谢谢老师。我只是一个学习VBA的初学者,所以我给你带来了困难。非常感谢您的考虑。请询问您什么时候方便。
如果您觉得有点难以理解,我提前道歉,因为我的英语很糟糕。
您好,您的工具非常适合我的情况。但我还是不明白为什么当我使用v1.02版本时出现错误消息,它在这里:
运行时错误“1004”
对象“_Worksheet”的方法“Range”失败。
一开始以为是新版本出错了,于是重新下载了v1.01版本,错误还是一样。至于该消息,在调试模式下它指向此命令行:
Dim sWord 作为字符串,oKorDicSearchResult 作为 TDicSearchResult,oEngDicSearchResult 作为 TDicSearchResult
Dim oBaseRange 作为范围
Set oBaseRange = Range(“搜索结果标题”).Offset(1, 0) [它指向这里]
oBaseRange.Select
你能告诉我错误在哪里以及如何修复它吗?
也许问题出在“范围(”搜索结果标题“)”部分。
此语法在 Excel 中意味着“命名范围”,我猜测用韩语编写的范围名称会导致您的计算机上出现错误。
尝试这个
1.在Excel中,按Ctrl+F3时出现的“名称管理器”窗口顶部单击“编辑”按钮,将名称更改为“标题”
2.将发生错误的VBA代码部分更改为以下内容
– 之前:范围(“搜索结果标题”)
– 之后:范围(“标题”)
希望这对你有用。
当它起作用时请发表评论。
I am using a modern version of Microsoft 365 on an English-language version of Windows 11 and ran into a couple of issues.
1. ActiveX controls being disabled by default in new versions of Excel.
My command buttons and checkboxes were not working because Microsoft now disables ActiveX controls by default for security.
I added the file’s location to Excel’s “Trusted Locations.”
Go to File > Options > Trust Center > Trust Center Settings… > Trusted Locations.
Add the folder containing the Excel file to the list.
Restart Excel.
2. Errors caused by language/character encoding differences between Korean and non-Korean systems.
The VBA code would stop or crash because my English version of Excel couldn’t understand some of the hard-coded Korean text, especially the Named Range.
As suggested by Zerom, I went to Formulas > Name Manager and edited the name 검색결과Header to be an English-friendly name like ResultHeader.
Then, I updated the two lines in the VBA code that refer to it:
Original Code:
Generated vba
Set oBaseRange = Range(“검색결과Header”).Offset(1, 0)
Set oBaseRange = Range(“검색결과Header”)
My Change:
Generated vba
Set oBaseRange = Range(“ResultHeader”).Offset(1, 0)
Set oBaseRange = Range(“ResultHeader”)
Next, I replaced the Korean text in message boxes and hyperlinks with English so they would display correctly.
Example 1 (Message Box):
Original: MsgBox “사전 검색을 시작하시겠습니까?”
My Change: MsgBox “Start dictionary search?”
Example 2 (Hyperlink Text):
Original: TextToDisplay:=”네이버국어사전 열기: ” & .sLinkWord
My Change: TextToDisplay:=”Open Naver Korean Dic: ” & .sLinkWord
After making these changes, the tool works perfectly on my English version of Office. Thank you again for your hard work on this project. I hope this information is helpful for others
Oh… there was a problem with the English version of Excel not working properly.
I’m glad you were able to solve it yourself. Thank you very much for sharing the solution!
I will fix it in the next version by changing the Korean code.
— Korean
아… 영어 버전 엑셀에서 잘 동작하지 않는 문제가 있었군요.
스스로 잘 해결하셔서 다행이고, 해결한 내용을 공유해 주셔서 정말 감사합니다.
다음 버전에서 한글 문자열로 되어있는 코드를 변경하여 해결하겠습니다.
I wonder if I am the only one experiencing an issue where the ‘link’, ‘유의어’, ‘반의어’, and ‘실제 검색어’ cells appear empty when searching for English words. I am not sure whether this is the expected behavior for English word searches or if it is an error caused by my minor modifications to the code in the English message boxes.
I’ll check for cases where the “link,” “유의어,” “반의어,” and “실제 검색어” cells are empty when searching for English words.
If any changes are needed, I’ll fix them in the next version.
Thank you for your feedback.
— Korean
영어 단어를 검색할 때 ‘link’, ‘유의어’, ‘반의어’, ‘실제 검색어’ cell에 빈 값이 나오는 경우를 확인하고, 수정이 필요하면 다음 버전에 반영하겠습니다.
피드백에 감사드립니다.