狗剩日记 狗剩日记
  • 切换模式
  • 返回顶部
  • 首页
  • EXCEL及VBA
  • python
  • 其他编程
  • 公文
  • 杂记
  • 工具
  • 狗剩日记 狗剩日记
  • 首页
  • EXCEL及VBA
  • python
  • 其他编程
  • 公文
  • 杂记
  • 工具

VBA比较两张相同结构表格差异并标红

可根据具体使用情况修改“Set compareRange = wsCurrent.Range("A5:AC17")”,括号内为比较范围Option Explicit Public Sub 比较两张表格差异() ' --- 变量声明 --- Dim wsCurrent As Worksheet Dim wsPrevious As Worksheet Dim compareRange As Range Dim cell As Range Dim previousSheetName As String Dim previousCellValue As Variant Dim differencesFound As Long Dim commentText As String Set wsCurrent = Application.ActiveSheet differencesFound

EXCEL及VBA · 16 天前
狗剩

清单保持单元格底边对齐的研究

因为合并单元格的不同,导致需要多重判断,异常难做,BUG很多,仅作留档备份

EXCEL及VBA · 24 天前
狗剩

excel选中表格英文符号全部替换为中文符号,同时将数字格式修改为Times New Roman

专为编办设计,一键将选中表格英文符号全部替换为中文符号,同时将数字格式修改为Times New Roman。

EXCEL及VBA · 06-23
狗剩

将EXCEL表格中的数字字体全部修改为新罗马(Times New Roman)

Sub 数字全部换为新罗马() Dim cell As Range Dim originalText As String Dim i As Long Dim char As String ' Loop through each selected cell For Each cell In Selection If Not IsEmpty(cell) Then originalText = cell.value If Len(originalText) > 0 Then ' Process each character in the cell For i = 1 To Len(originalText) char = Mid(originalText, i, 1) ' Check if the character is

EXCEL及VBA · 06-19
狗剩

清单超链接点击跳转溯源

使用前需对溯源序号进行超链接赋予操作。' 定义全局变量,记录第一次输入的工作表名称及筛选的列号 Private storedSheetName As String Private storedFilterColumn As Long ' 用户可在此处填写目标工作表名称 Private Function GetTargetSheetName() As String GetTargetSheetName = "1." ' 替换为实际工作表名称,例如 "Sheet1" 或 "基础版" End Function ' 用户可在此处填写筛选的列号 Private Function GetFilterColumn() As Long GetFilterColumn = 1 ' 替换为实际列号,例如 1 表示第一列 End Function Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Dim arr() As String

EXCEL及VBA · 06-19
狗剩
  • 1
  • 2
  • ›
狗剩

狗剩

  • python
  • VBA
  • PHP
  • 某大厂未入职员工
  • 编外人员
热门文章
  • 对excel表格中达到409磅仍无法完全显示的单元格自动插入一列并合并单元格
  • 一键为选中单元格赋予超链接
  • 选中单元格英文符号全部替换为中文(不含.)
  • 重组跨页的合并单元格
  • 清单超链接点击跳转溯源
  • 将EXCEL表格中的数字字体全部修改为新罗马(Times New Roman)
  • EXCEL表格拆分工具源码(某列按关键词拆分)
最新评论
  • 不知名: 加油!
热门标签
  • EXCEL
  • VBA
  • python
关于站长
  • 某政府部门编外人员
  • 蜀ICP备20019865号-4
2025 - 2025 狗剩日记. All Rights Reserved.