8 Then Range("B"&i).Select ActiveSheet.Hyp" />
乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > excel 宏里面循环语句怎么写???

excel 宏里面循环语句怎么写???

作者:乔山办公网日期:

返回目录:excel表格制作


for i = 17 to 28

cells(i,2)="SQRT....此处省略N个字"

next

Dim i As Integer

For i = 4 To 12
If i <> 8 Then
Range("B"&i).Select
ActiveSheet.Hyperlinks.Add anchor:=Selection, Address:="../00" & (i - 3)
End If
Next

这样能看到EXCEL表的变化,试试吧,这没在本地测试过,如有问题再讨论,祝你zd成功!
Dim i
For i = 1 To 100
If Range("O" & i) = "" Then ‘不等“”就直接跳到end if后的代码了。
’等于空值要执行的代码写在这里就行了。
End If
Next

sub xx()
dim n%,i%
n=cells(1,1)
for i=1 to n
cells(i,3)=right((1000+i) & cells(1,2),5)
next i
end sub

相关阅读

关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网