I had the problem of too long (multi-cell) array formula (len of 308) via VBA.

I put the formula into a user-defined-name (with { and } ). It worked when entered in Excel as an array formula.

I used it in my VBA code ( .FormulaArray = “=myDefinedName.Long” ) and it worked as well.

But I can imagine that it won’t work with every array formula (and it doesn’t work as a list in data validation).

Regards,

Hasan

some change add from other Web

Sub lightenRGB()

Dim I As Integer, Rng As Range

Dim R As Byte, G As Byte, B As Byte

Set Rng = Selection

With Rng.Cells(1).Interior

R = .Color Mod 256

G = (.Color \ 256) Mod 256

B = (.Color \ (CLng(256) * 256))

End With

For I = 2 To Rng.Cells.Count

With Rng.Cells(I).Interior

.Color = RGB(R + (255 – R) * (I – 1) / (Rng.Cells.Count – 1), _

G + (255 – G) * (I – 1) / (Rng.Cells.Count – 1), _

B + (255 – B) * (I – 1) / (Rng.Cells.Count – 1))

End With

Next I

End Sub

Thanks for all your codes.

I have one more query .

Firstly i login the website by using ID & Password , then home page will get open there are multiple tab to click over there and i need to click on ” My Team Attendance” .

After clicking this only then will get one more option “Show Attendance” when i will click these two options then attendance table will open.

Please help me that how i click these two options and fetch the data.

I will really help me a lot.

Thanks

Jai Hind

]]>