Excel精英培训网

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

VBA80第13集练习题上交专贴:单元格信息返回

  [复制链接]
发表于 2021-9-30 11:30 | 显示全部楼层

回复

使用道具 举报

发表于 2021-9-30 11:41 | 显示全部楼层
Sub t1()
Dim x As Integer, y As Integer, m As Integer, n As Integer
With Range("c4").CurrentRegion
x = .Rows.Count
y = .Columns.Count
m = .Rows.Count
n = .Columns.Count
[a1] = Range("a1").Offset(x + m - 1, y + n - 1).Address
End With

End Sub

Sub t2()
Range("f3").Comment.Shape.Left = Range("e1").Left
End Sub
回复

使用道具 举报

发表于 2021-10-1 17:48 | 显示全部楼层
回复

使用道具 举报

发表于 2021-10-1 18:10 | 显示全部楼层
Sub t1()
Dim str As String
Dim i, k As Integer
Dim rng As Range
    With Range("D4").CurrentRegion
        i = .Rows.Count - 1
        k = .Columns.Count - 1
        Set rng = .Range("A1").Offset(i, k)
    End With
    str = rng.Address(0, 0)
    Debug.Print str
End Sub

回复

使用道具 举报

发表于 2021-10-6 16:40 | 显示全部楼层
看答案
回复

使用道具 举报

发表于 2021-10-11 10:41 | 显示全部楼层
1
回复

使用道具 举报

发表于 2021-10-13 17:54 | 显示全部楼层
Sub test()
    Dim x, y As Integer
     x = Range("c65535").End(xlUp).Row
     y = Range("z3").End(xlToLeft).Column
     MsgBox Cells(x, y).Address(0, 0)
End Sub

Sub test2()
    Range("f3").Comment.Shape.Left = Range("d3").Width + Range("d1").Left
    Range("f3").Comment.Shape.Top = Range("d3").Top
End Sub
回复

使用道具 举报

发表于 2021-10-16 16:50 | 显示全部楼层
看作业
回复

使用道具 举报

发表于 2021-10-20 15:09 | 显示全部楼层
让我康康
回复

使用道具 举报

发表于 2021-10-25 17:10 | 显示全部楼层
看看  后学者
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 03:36 , Processed in 0.269075 second(s), 5 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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