Hello,
Sorry, I'm bugging you.
I created an array in excel vba. It worked like it was supposed to. Then stopped. I have been fighting with this all night.
At one point I readded the reference to MSCORLIB,dll to be able to dim varibles as Arrays and array list. It made no difference.
Will you please take a look at the code and tell me if you see anything, Please.
Thank You
Sorry, I'm bugging you.
I created an array in excel vba. It worked like it was supposed to. Then stopped. I have been fighting with this all night.
At one point I readded the reference to MSCORLIB,dll to be able to dim varibles as Arrays and array list. It made no difference.
Will you please take a look at the code and tell me if you see anything, Please.
VBA Code:
Function column_irit()
Dim sheet As Worksheet
Dim c As Variant
Dim d As Variant
Dim e As Variant
Dim Letter As String
Dim i As Integer
Dim rng As Range
'Worksheets("Sheet10").Activate
c = Array(“D”, “E”, “F”, “G”, “H”, “I”, “J”, “K”, “L”, “M”, “N”, “O”, “P”, “Q”, “R”, “S”, “T”, “U”, “V”, “W”, “X”, “Y”, “Z”, “AB”, “AC”, “AD”, “AE”, “AF”, “AG”, “AH”, “AI”, “AJ”, “AK”, “AL”, “AM”, “AN”, “AO”, “AP”, “AQ”, “AR”, “AS”, “AT”, “AU”, “AV”, “AW”, “AX”, “AY”, “AZ”, “BA”, “BB”, “BC”, “BD”, “BE”, “BF”, “BG”, “BH”, “BI”, “BJ”, “BK”, “BL”, “BM”, “BN”, “BO”, “BP”, “BQ”, “BR”, “BS”, “BT”, “BU”, “BV”, “BW”, “BX”, “BY”, “BZ”, “CA”, “CB”, “CC”, “CD”, “CE”, “CF”, “CG”, “CH”, “CI”, “CJ”, “CK”, “CL”, “CM”, “CN”, “CO”, “CP”, “CQ”, “CR”, “CS”, “CT”, “CU”, “CV”, “CW”, “CX”, “CY”, “CZ”, “DA”, “DB”, “DC”, “DD”, “DE”, “DF”, “DG”, “DH”, “DI”, “DJ”, “DK”, “DL”, “DM”, “DN”, “DO”, “DP”, “DQ”, “DR”, “DS”, “DT”, “DU”, “DV”, “DW”, “DX”, “DY”, “DZ”, “EA”, “EB”, “EC”, “ED”, “EE”, “EF”, “EG”, “EH”, “EI”, “EJ”, “EK”, “EL”, “EM”, “EN”, “EO”, “EP”, “EQ”, “ER”, “ES”, “ET”, “EU”, “EV”, “EW”, “EX”, “EY”, “EZ”, “FA”, “FB”, “FC”, “FD”, “FE”, “FF”, “FG”, “FH”, “FI”, “FJ”, “FK”, “FL”, “FM”, “FN”, “FO”, “FP”, “FQ”, “FR”, “FS”, “FT”)
i = 1
Letter = c(1)
Do While i <= 57
d = sheet.Cells(c(i) & "2").Value
sheet.Cells(c(i + 1) & "1") = d
Range(c & "2", c & "994").Select
Range(c & "2", c & "994").FillDown
Thank You