Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: 兰色幻想

VBA80集第12集作业上交贴:非空行

  [复制链接]
发表于 2020-10-1 20:49 | 显示全部楼层

回复

使用道具 举报

发表于 2020-10-1 23:16 | 显示全部楼层
回复

使用道具 举报

发表于 2020-10-8 22:59 | 显示全部楼层
回复

使用道具 举报

发表于 2020-10-13 22:51 | 显示全部楼层
Sub 非空儲存格標著()
   Sheets("工作表1").Activate
   Dim x As Integer
    Fori = 3 To 10
       x = Range("A" & i).End(xlToRight).Column
       If (x > 1 And x <= 4) Then
           With Range("A" & i)
                .Value = "1"
                .Interior.ColorIndex = 6
           End With
       End If
   Next i

End Sub

回复

使用道具 举报

发表于 2020-10-14 16:18 | 显示全部楼层
不会做,过来找答案
回复

使用道具 举报

发表于 2020-10-19 19:21 | 显示全部楼层
提示有不良信息,代码不知道包含啥不良信息了
回复

使用道具 举报

发表于 2020-10-29 21:23 | 显示全部楼层
OK看看答案
回复

使用道具 举报

发表于 2020-11-1 17:07 | 显示全部楼层
新人前来报道,最近开始学习VBA,感觉好难啊。
回复

使用道具 举报

发表于 2020-11-6 21:20 | 显示全部楼层
我又来了
回复

使用道具 举报

发表于 2020-11-7 16:07 | 显示全部楼层

第一题:
Sub x1()
Dim rg As Range
Columns("b:d").SpecialCells(xlCellTypeConstants).Select
Set rg = Selection
Application.Intersect(Columns(1), rg.EntireRow).Value = 1

End Sub


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-3 19:48 , Processed in 0.316163 second(s), 5 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表