自定义生成excel模板_如何在Excel中创建自定义模板

自定义生成excel模板_如何在Excel中创建自定义模板

自定义生成excel模板

自定义生成excel模板_如何在Excel中创建自定义模板

Odds are pretty good that you create the same types of Excel spreadsheets over and over again. Creating a custom template can help make that process a lot smoother.

一次又一次地创建相同类型的Excel电子表格的可能性非常好。 创建自定义模板可以帮助使该过程更加顺畅。

When faced with creating similar spreadsheets, many people pop open an existing sheet, delete the data they don’t want there, and then save it as a different file. Worse still, some just create the file from scratch every time. A custom template can make this go a lot faster. Template files are more or less the same as standard Excel files, but with formatting and boilerplate content already set. You just use the template to create a new Excel file, and fill in the data. You can create a custom template from scratch, or you can save an existing spreadsheet as a template, and then clean it up a bit. The only difference is whether you start with a new, blank sheet or one you’ve already created.

当面对创建类似的电子表格时,许多人会弹出一个现有工作表,删除他们不想要的数据,然后将其另存为其他文件。 更糟糕的是,有些每次都会从头开始创建文件。 自定义模板可以使此过程更快。 模板文件与标准Excel文件大致相同,但是模板的格式和样板内容已设置。 您只需使用模板来创建新的Excel文件,然后填写数据。 您可以从头开始创建自定义模板,也可以将现有电子表格另存为模板,然后进行一些清理。 唯一的区别是从新的空白纸还是已经创建的空白纸开始。

创建一个模板 (Create a Template)

For our example, we’re going to create template from an existing spreadsheet. Here’s a standard sheet we use at How-To Geek for expense reports.

对于我们的示例,我们将根据现有电子表格创建模板。 这是我们在How-To Geek上使用的标准表,用于费用报告。

自定义生成excel模板_如何在Excel中创建自定义模板

The file is just a regular Excel file saved with the .xlsx extension. Ours is already nicely formatted, so we just need to delete any actual data we don’t need to be there. If you’re adapting an existing sheet (or creating a new one), go ahead and clean it up. Set up the base sheet, add your headings, include formulas, format cells, create borders, whatever. In short, make it so that when you create a new file based on the template, you can just start typing in data.

该文件只是以.xlsx扩展名保存的常规Excel文件。 我们的格式已经很好,因此我们只需要删除不需要的任何实际数据即可。 如果要调整现有工作表(或创建新工作表),请继续进行清理。 设置基础工作表,添加标题, 包括公式 ,设置单元格格创建边框等。 简而言之,请确保在基于模板创建新文件时就可以开始输入数据。

When you’ve got things looking the way you want, you need to save the file as a template. Open the “File” menu, and then click the “Save As” option.

当事情看起来像您想要的那样时,您需要将文件另存为模板。 打开“文件”菜单,然后单击“另存为”选项。

自定义生成excel模板_如何在Excel中创建自定义模板

In the file type dropdown (just underneath the file name text box), select the “Excel template (.xltx)” option.

在文件类型下拉列表中(在文件名文本框下面),选择“ Excel模板(.xltx)”选项。

自定义生成excel模板_如何在Excel中创建自定义模板

By default, Excel likes to save templates in Documents\Custom Office Templates, but you can save them wherever it makes sense to you.

默认情况下,Excel喜欢将模板保存在“文档\自定义Office模板”中,但是您可以将它们保存在您认为合适的任何位置。

自定义生成excel模板_如何在Excel中创建自定义模板

If you want an even more organized approach, you can change the default location where Excel saves templates. On the “File” menu, click the “Options” command. In the “Excel Options” window, slick the “Save” category in the left column.

如果您想要一种更有条理的方法,则可以更改Excel保存模板的默认位置。 在“文件”菜单上,单击“选项”命令。 在“ Excel选项”窗口中,在左栏中滑动“保存”类别。

自定义生成excel模板_如何在Excel中创建自定义模板

On the right, you’ll see a “Default personal templates location” box where you can type a path to a custom save location for templates. There’s “Browse” button for some reason, so type the full path to the folder you want to use or copy and paste the location from a File Explorer address bar.

在右侧,您将看到“默认个人模板位置”框,您可以在其中键入模板的自定义保存位置的路径。 出于某种原因,这里有“浏览”按钮,因此请键入要使用的文件夹的完整路径,或者从文件资源管理器地址栏中复制并粘贴位置。

自定义生成excel模板_如何在Excel中创建自定义模板

使用模板创建新文档 (Use a Template to Create a New Document)

Now that you’ve got your template saved, you can use it to create new documents. And you can do this in one of two ways.

现在,您已经保存了模板,可以使用它来创建新文档。 您可以通过以下两种方式之一进行操作。

If you save your templates in the official custom templates folder Office uses (whether that’s the default Documents\Custom Office Templates location or you configured a new save location in Settings), those templates become available on the Office splash screen. That screen shows featured templates by default, but you can see templates you’ve saved by clicking the “Personal” link.

如果将模板保存在Office使用的官方自定义模板文件夹中(无论是默认的Documents \ Custom Office模板位置,还是在“设置”中配置了新的保存位置),这些模板在Office初始屏幕上将变为可用。 该屏幕默认显示精选模板,但是您可以通过单击“个人”链接查看已保存的模板。

Just click the template you want to use, and Excel creates a new document for you based on that template.

只需单击要使用的模板,Excel便会基于该模板为您创建一个新文档。

自定义生成excel模板_如何在Excel中创建自定义模板

You can also create a new file based on a template by just double-clicking the template in File Explorer. The default action on template files is to create a new file rather than open the template file, so double-clicking a template immediately opens a new Excel file for you.

您还可以通过在文件资源管理器中双击模板来基于模板创建新文件。 模板文件的默认操作是创建一个新文件而不是打开模板文件,因此双击模板会立即为您打开一个新的Excel文件。

If you want to open the actual template file to modify it, you can right-click the file, and then choose “Open” from the context menu.

如果要打开实际的模板文件进行修改,可以右键单击该文件,然后从上下文菜单中选择“打开”。

自定义生成excel模板_如何在Excel中创建自定义模板

In the end, template files are functionally much like regular excel files. The big difference lies in how Excel handles those files, making it easy for you to create new documents based on them.

最后,模板文件在功能上与常规excel文件非常相似。 最大的不同在于Excel处理这些文件的方式,使您可以轻松地基于它们创建新文档。

翻译自: https://www.howtogeek.com/344420/how-to-create-custom-templates-in-excel/

自定义生成excel模板