小编Kel*_*lbe的帖子

如何从代码中删除Excel VBA的$符号

我有以下代码:

Sub poorguy()
Dim counter As Long
Dim countto As Long
Dim col1 As String
Dim col2 As String
Dim col3 As String
Dim col4 As String
Dim rngwrite As Range

counter = 0
countto = 100

For i = 0 To countto
    col1 = Cells(12, 2).Offset(0, counter).Address
    col2 = Cells(12, 3).Offset(0, counter).Address
    col3 = Cells(3, 2).Offset(0, counter).Address
    col4 = Cells(3, 3).Offset(0, counter).Address
    Set rngwrite = Cells(58, 3).Offset(counter, counter)
    rngwrite.Value = "=(" & col1 & "-" & col2 & ")*" …
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba

5
推荐指数
1
解决办法
2937
查看次数

复制数组并将其存储在另一个数组中

我有

string[] a = {"1","2","3","4","5"};
Run Code Online (Sandbox Code Playgroud)

我想创建第二个数组并让它存储*3数组a有什么.

所以第二个数组看起来像:

string[] b = {"1","2","3","4","5","1","2","3","4","5","1","2","3","4","5"};
Run Code Online (Sandbox Code Playgroud)

我在考虑使用Array.Copy,但还有另一种方法吗?

c# arrays

1
推荐指数
1
解决办法
56
查看次数

标签 统计

arrays ×1

c# ×1

excel ×1

excel-vba ×1

vba ×1