VBA
文章平均质量分 57
poxiao8
这个作者很懒,什么都没留下…
展开
-
EXCEL存储为UTF8编码
Sub ConvFile(InputFile As String, OutputFile As String) '导出UTF-8格式文件 Dim WriteStream As Object Set WriteStream = CreateObject("ADODB.Stream") With WriteStream .Type = 2转载 2016-11-15 17:41:09 · 6035 阅读 · 0 评论 -
时间T内N个技能释放次数
Sub Skill() Dim i As Double, j As Double, skNum As Integer, AtkTime As Double, info() As Variant, psTime As Double skNum = InputBox("要模拟的技能数", "技能数量", "16") info = Range("B2:E" & skNum + 1原创 2017-02-08 16:49:00 · 296 阅读 · 0 评论 -
NvsN集火模拟器
Option Explicit '当一个队伍只剩1个角色时,将不间断攻击 Public TeamMeb As Integer '一个队伍中队员数量 Type Team '定义角色属性,可拓展 Blood As Long '血量 Atk As Long '攻击 End Type Sub BattleSimulate() Dim teamA() As Team, tea原创 2017-03-16 00:24:06 · 447 阅读 · 0 评论 -
合并单元格
Option Explicit Function CombineRange(WorkRng As Range, Optional Sign As String = ";") As String Dim rng As Range Dim outStr As String For Each rng In WorkRng If rng.Text <&...原创 2017-09-06 21:35:59 · 375 阅读 · 0 评论 -
修改点击所在单元格行列颜色
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) On Error Resume Next Cells.FormatConditions.Delete With Target.EntireRow.FormatConditions .Delete .Add xlExpression, , "T...转载 2018-04-25 11:15:29 · 1157 阅读 · 0 评论