Usuń białe znaki w programie VBA excel
Mam kod do przenoszenia tekstu z komórki do komórki
<code>Dim startIndex As Integer Dim toIndex As Integer Dim f As String Dim g As String For startIndex = 50 To 60 Step 2 toIndex = Str(startIndex + 1) f = "F" & Str(toIndex) g = "G" & Str(startIndex) Range(f).Value = Range(g).Value Range(g).Value = "" Next startIndex </code>
Ale zmienna f ma wartość „F 51” zamiast „F51”.
Jak rozwiązać ten problem? p.s. To mój pierwszy kod na vba.