当前位置:网站首页>The selected cells in Excel form have the selection effect of cross shading
The selected cells in Excel form have the selection effect of cross shading
2022-07-02 11:44:00 【Get up in the morning and buy soymilk】
be based on VBA Realization Excel Cross highlight
I need this function by chance , Microsoft EXCEL The table realizes the selection effect of cross shading in the selected cells ;
Found some ways , Make detailed records again , See this article to basically solve the problems mentioned in the title .
One 、 Format requirements
First , The file format must be .xlsm Format , If not in this format , The effect of setting is turning off excel Reopen the form after , The probability will fail .
Two 、 Specific steps
1**、 open vbe Editor **
Method :ALT+F11
2、 Double click on the left thisworkbook label , And paste the code 
The code is as follows :
' Note that this method will remove the existing background color of the cell
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.Color = RGB(230, 250, 230) ' Row style
Target.EntireColumn.Interior.Color = RGB(230, 250, 230) ' Column style
Target.Interior.Color = RGB(255, 255, 255) ' Cell style
End Sub
Then save the step .ctrl+S( Pop up prompt Click : yes )
3、 Realization effect , Achieve a goal ;
such , Then realized excel The selected cells in the table have the selection effect of cross shading , Hope to be able to help people in need , Give it a like .
边栏推荐
- Is bond fund safe? Does the bond buying foundation lose principal?
- flutter 问题总结
- 可升级合约的原理-DelegateCall
- [idea] use the plug-in to reverse generate code with one click
- Cluster Analysis in R Simplified and Enhanced
- 基于Hardhat和Openzeppelin开发可升级合约(一)
- Array splitting (regular thinking
- Map set assignment to database
- STM32 single chip microcomputer programming learning
- 6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用
猜你喜欢

Develop scalable contracts based on hardhat and openzeppelin (II)

From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang

Tick Data and Resampling

MySQL comparison operator in problem solving

预言机链上链下调研

RPA进阶(二)Uipath应用实践

亚马逊云科技 Community Builder 申请窗口开启

Verilog 和VHDL有符号数和无符号数相关运算

TIPC messaging3

Solve the problem of data blank in the quick sliding page of the uniapp list
随机推荐
Principle of scalable contract delegatecall
CTF record
C#多维数组的属性获取方法及操作注意
MySQL比较运算符IN问题求解
A sharp tool for exposing data inconsistencies -- a real-time verification system
MySQL basic statement
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
启牛商学院给的股票账户安全吗?能开户吗?
Verilog 和VHDL有符号数和无符号数相关运算
What are the methods of adding elements to arrays in JS
Is it safe to open a stock account online? I'm a novice, please guide me
vant tabs组件选中第一个下划线位置异常
Importerror: impossible d'importer le nom « graph» de « graphviz»
[cloud native] 2.5 kubernetes core practice (Part 2)
How to Create a Nice Box and Whisker Plot in R
ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)
Is it safe to open a stock account through the QR code of the securities manager? Or is it safe to open an account in a securities company?
Thanos Receiver
函数式接口和方法引用