oracle表编译警告_警告分组表

oracle表编译警告

If you select more than one sheet in a workbook, and start typing or formatting, that data or formatting will be entered in all the selected sheets, not just the active sheet.

如果您在工作簿中选择多个工作表,然后开始键入或设置格式,则该数据或格式将输入所有选定的工作表中,而不仅仅是活动工作表。

Sheet grouping is a great feature – if you want to type on all the sheets, or add formatting, or whatever. But it’s not so great if you don’t notice that the sheets are grouped, and accidentally work on all the sheets.

工作表分组是一项很棒的功能-如果您想在所有工作表上键入内容,添加格式或进行其他操作。 但是,如果您没有注意到工作表已分组,并且意外地在所有工作表上工作,那并不是很好。

It’s easy to forget that you grouped a few sheets – you interrupt your work for a quick phone call, or grab another cup of coffee, and poof! That memory is gone, and the worksheet damage can begin.

忘记将几张纸​​分组很容易–您打断电话来打个电话,或者再喝一杯咖啡然后po! 该内存已消失,工作表损坏可能开始。

突出显示分组表 (Highlight Grouped Sheets)

In all the years that I’ve used Excel, the grouped sheets alert hasn’t changed. Excel gives us big, flashy warnings about other things, but not for grouped sheets.

在使用Excel的所有年份中,分组工作表警报都没有更改。 Excel为我们提供了关于其他事项的大量警告,但不适用于分组表。

Instead, we only get subtle reminders:

相反,我们只会得到一些微妙的提醒:

  • a tiny “[Group]” at the end of the file name, in the title bar.

    标题栏中文件名末尾的小“ [Group]”。
  • bold text on the selected sheet tabs

    所选工作表标签上的粗体文本

And that text in the title bar isn’t highlighted in green, like it is in my screen shot below. Nope, it’s just plain text, and very easy to overlook.

标题栏中的文本并未以绿色突出显示,就像下面的屏幕截图一样。 不,这只是纯文本,非常容易忽略。

sheetsgrouped02

What would you like Excel to do, to make grouped sheets more noticeable?

您希望Excel做什么,以使分组工作表更明显?

  • Change the title bar to purple?

    将标题栏更改为紫色?
  • Play scary music?

    播放恐怖音乐?
  • Show a scrolling message?

    显示滚动消息?

显示警告 (Show a Warning)

Those features might be in the next version, and in the meantime, you can use a macro that counts the number of sheets that are selected. If the count is higher than 1, the macro shows a warning message, so you will remember to ungroup the sheets.

这些功能可能在下一版本中,与此同时,您可以使用一个宏来计算所选的工作表数。 如果计数大于1,则宏将显示警告消息,因此您将记得取消对工作表的分组。

sheetsgrouped

To use this code, paste it into a regular code module in your Excel file. Then, you could run the code at the start of other macros, or add it to the Workbook_SheetActivate event code.

要使用此代码,请将其粘贴到Excel文件中的常规代码模块中。 然后,您可以在其他宏的开头运行代码,或将其添加到Workbook_SheetActivate事件代码中。

[Code updated - thanks to Dick Kusleika]

[代码已更新-感谢Dick Kusleika]

Sub GroupedCount()
Dim wdw As Window
Dim ws As Worksheet
On Error Resume Next
Set wdw = ActiveWindow
Dim Count As Long
Count = wdw.SelectedSheets.Count
If Count > 1 Then
   MsgBox "WARNING! " & Count & " sheets are grouped", _
      vbOKOnly + vbCritical, "Grouped Sheets"
End If
End Sub

视频:如果工作表分组,宏将失败 (Video: Macro Fails If Sheets Grouped)

Grouped sheets can also cause problems if you try to run code that only works on ungrouped sheets. For example, if code protects or unprotects all the sheets, the code will fail if the sheets are grouped, as you can see in this video.

如果您尝试运行仅适用于未分组工作表的代码,则分组工作表也会导致问题。 例如,如果代码保护或取消保护所有工作表 ,则如果将工作表归为一组,则代码将失败,如您在本视频中看到的那样。

To prevent errors, you can ungroup the sheets before running the macro, or add a line of code in the macro, to select just one sheet.

为防止错误,您可以在运行宏之前对工作表进行分组,或者在宏中添加一行代码以仅选择一张工作表。

演示地址

翻译自: https://contexturesblog.com/archives/2014/05/01/warning-for-grouped-sheets/

oracle表编译警告

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值