Category Archives: VBA

Visual Basic for Applications

Omvandla kolumnreferens integer till char för Excel

Public Function getColumnRef(intNumber As Integer) ‘Inargument är ett valfritt heltal ‘Utargument är en sträng av bokstäver intNumber = CInt(intNumber) Dim temp As String Dim hel, rest As Integer Dim ch1, ch2 As Variant hel = CInt(intNumber \ 26) rest = … Continue reading

Posted in VBA | Leave a comment