excel宏 拆分工作表_在Excel宏代码中更改工作表名称

excel宏 拆分工作表

If you download one of the sample Excel workbooks from my Contextures website, you might want to customize it, to meet your requirements. The two videos below show how to customize one of my files, and you can make similar changes in other workbooks. 

如果您从我的Contextures网站下载了一个示例Excel工作簿,则可能需要对其进行自定义以满足您的要求。 下面的两个视频显示了如何自定义我的文件之一,您可以在其他工作簿中进行类似的更改。

Excel数据输入表 (Excel Data Entry Form)

These videos show how to make changes to the Worksheet Data Entry Form workbook. It's a popular download on my site, and people had questions about customizing it.

这些视频演示了如何对工作表数据输入表单工作簿进行更改。 这是我网站上的热门下载,人们对自定义有疑问。

dataentry04

自定义工作表设置 (Customize the Worksheet Setup)

The sample workbook has a sheet where you can enter data, and the first video shows how you can make changes to the worksheet setup.

该示例工作簿有一个工作表,您可以在其中输入数据,第一个视频显示了如何更改工作表设置。

For example, you might need to add another field with a drop down list of items.

例如,您可能需要添加另一个带有项目下拉列表的字段。

dataentry09

视频:自定义工作表设置 (Video: Customize Worksheet Setup)

To see how to customize the worksheet setup in the sample file, watch this short video.

若要查看如何在示例文件中自定义工作表设置,请观看此简短视频。

For written steps and screen shots, go to the Worksheet Data Entry page on my site.

有关书面步骤和屏幕截图, 请转到我网站上的“工作表数据输入”页面

演示地址

在代码中更改工作表名称 (Change Sheet Names in Code)

Another thing that you might need to change, when you're customizing one of the sample files, is the VBA code in the workbook.

自定义示例文件之一时,您可能需要更改的另一件事是工作簿中的VBA代码。

In the Worksheet Data Entry file,  if you change the sheet names, you'll need to change the code, so Excel knows where to work its magic!

在“工作表数据输入”文件中,如果您更改工作表名称,则需要更改代码,因此Excel知道在哪里可以发挥其魔力!

工作表名称的两个选项 (Two Options for Sheet Names)

The video below shows 2 options for changing the sheet names in the code.

下面的视频显示了两个用于更改代码中工作表名称的选项。

  1. Change the sheet tab names in the code, with find and replace

    使用查找和替换更改代码中的工作表标签名称
  2. Use sheet code names, instead of sheet tab names, for a better solution to the problem

    使用工作表代码名称而不是工作表选项卡名称,可以更好地解决此问题

You can apply the same techniques in other Excel VBA code, if you're customizing a workbook for your own use.

如果要自定义工作簿以供自己使用,则可以在其他Excel VBA代码中应用相同的技术。

视频:代码中的变更表名称 (Video: Change Sheet Names in Code)

To see the steps for changing the sheet names in the code, watch this short Excel video tutorial.

要查看在代码中更改工作表名称的步骤,请观看此简短的Excel视频教程。

For written steps and screen shots, go to the Worksheet Data Entry page on my site.

有关书面步骤和屏幕截图, 请转到我网站上的“工作表数据输入”页面

NOTE:  The video timeline is below the video

注意:视频时间轴在视频下方

演示地址

Video Timeline

影片时间表

  • 0:00 Intro

    0:00简介
  • 0:59 View the Code

    0:59查看代码
  • 2:10 Two Options

    2:10两种选择
  • 2:58 Find and Replace

    2:58查找并替换
  • 4:55 Use Code Names

    4:55使用代码名称
  • 7:26 Get the Workbook

    7:26获取工作簿

获取工作表数据输入表单 (Get the Worksheet Data Entry Form)

The zipped sample workbook can be downloaded from the Date Entry and Update form page on my Contextures site.

可以从我的Contextures网站上的“ 日期输入和更新”表单页面下载压缩的示例工作簿。

There are several versions of the worksheet data entry form, available for download. Check the descriptions, and get the file that most closely matches your requirements.

有几种版本的工作表数据输入表单,可以下载。 检查描述,并获取最符合您要求的文件。

翻译自: https://contexturesblog.com/archives/2019/09/26/change-sheet-names-in-excel-macro-code/

excel宏 拆分工作表

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值