Skip to content

shishouyuan/HandyRefVBA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English Version

Introduction

    HandyRef provides a handy way to insert Cross Reference in MS Word and WPS, just like copy and paste. "Copy" what you want to reference and "paste" it at the point where cross reference is needed. HandyRef abandons the long list for selecting reference items that MS Word uses and greatly speeds up the cross-reference process. HandyRef can also find broken references in the document and attach comments to them. HandyRef provides Ribbon and keyboard shortcut for the user. Picture below shows the Ribbon that integrated in MS Word "Reference" Ribbon tab. By the way, HandyRef is open-source.

1-1.png

HandyRef Step by Step

2-1.png

Insert Cross Reference

    Only 2 steps are needed to insert a cross reference with HandyRef.

  • Step 1: Select the contents that needed to be referenced, and click Create Source or press Ctrl+Alt+C.
  • Step 2: move the cursor to the point you want to insert a cross reference, and click Insert Reference or pressCtrl+Alt+V. You can repeat step 2 to insert multiple references that linked to same object.

Check for Broken Reference

    HandyRef can find broken references in the document and attach comments to them. Click "Check Reference" to do this.

Setup of HandyRef

    Please download the latest template file from the Release folder at https://github.com/shishouyuan/HandyRefVBA. Download HandyRef-English.dotm if you want an English UI. There are 2 ways to use HandyRef.

Install HandyRef Globally

    If you want to use HandyRef all the time, please choose this option.     It takes only one step to install HandyRef。Put HandyRef-English.dotm template file into the folder %AppData%\Microsoft\Word\STARTUP in your computer, restart MS Word and enable macros following the prompt.

Temporarily Use of HandyRef

    If you want to use HandyRef for a single file, please load the template file for a existing file or just double click the template file to create a new MS Word file that based on it.

Claims

    There is no guarantee given for HandyRef, and users take any consequence on their own. HandyRef is open-source, but can only be used or distributed for non-commercial purpose.

中文版

“HandyRef-快引”简介

    “HandyRef-快引”为Word和WPS提供一个快速添加交叉引用的方式,整个流程类似于复制粘贴:先“复制”要引用的内容,然后在需要交叉引用的地方“粘贴”即可。“HandyRef-快引”改变了Word交叉引用操作需要在冗长的被引对象列表中选取的操作方式,极大提高了工作效率。“HandyRef-快引”还可以查找文档中损坏的交叉引用并添加提示批注。“HandyRef-快引”提个供了工具栏和键盘快捷键两种使用方式,下图展示了集成到Word“引用”选项卡中的“HandyRef-快引”。“HandyRef-快引”是开源的,用户可以浏览其代码以确保没有安全隐患。

1-1.png

“HandyRef-快引”操作步骤

2-1.png

添加交叉引用

    “HandyRef-快引”添加交叉引用仅需2步。

  • 步骤1: 选中要被引用的内容, 然后点击创建引用源或按快捷键Ctrl+Alt+C
  • 步骤2: 将光标置于需要插入交叉引用的地方, 点击交叉引用或按快捷键Ctrl+Alt+V。此步骤可重复用于连续添加对同一对象的多个引用。

检查引用错误

    “HandyRef-快引”可以查找文档中损坏的交叉引用并添加提示批注,方便用户发现文档中存在的交叉引用问题。只需点击检查引用按钮即可。

“HandyRef-快引”的安装

    首先请从https://github.com/shishouyuan/HandyRefVBARelease文件夹中获取最新的模板文件, 想使用中文界面请下载HandyRef-中文.dotm。有2种安装方式。(对于WPS 2019请先打开开发工具->WPS 宏编辑器->工具->选项取消勾选禁止全局作用域表达式

全局安装“HandyRef-快引”

    如果希望在编辑任何Word文件时都可以使用“HandyRef-快引”, 请选择全局安装。     安装方法仅需1步。将HandyRef-中文.dotm模板文件放入电脑中的%AppData%\Microsoft\Word\STARTUP文件夹, 重新打开Word根据提示启用宏即可。

单次使用“HandyRef-快引”

    若仅希望针对单个文件使用“HandyRef-快引”, 对已有文件可以直接加载HandyRef-中文.dotm模板文件(操作方法请上网搜索), 对新文件可以直接双击HandyRef-中文.dotm模板文件来创建新文件。

声明

    “HandyRef-快引”出于作者兴趣开发, 作者不对其表现进行任何承诺, 用户自己承担由于使用“HandyRef-快引”所造成的后果。“HandyRef-快引”是开源的, 用户仅可基于非商业目的对其进行使用和再分发。

About

Provide a copy-and-paste-like approach to insert Cross Reference in MS Word and WPS. 用于在Word和WPS里像“复制粘贴”一样添加交叉引用

Topics

Resources

Stars

Watchers

Forks