Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[VBA] Columns mit Zahlen ansprechen

Empfohlene Antworten

Moin,

ich will komplette spalten nicht mit dem spalten buchstaben, sonder mit einer zahl ansprechen.

nicht:

Columns("B:D").Select

sondern (sinngemäß):

i=2

j=4

Columns(i:j).Select

wie geht das? danke schon einmal im vorraus

gruß ;)

über umwege:

Public Function GetColumnName(intSpaltennummer As Integer) As String

  If intSpaltennummer <= 0 Or intSpaltennummer > Columns.Count Then

    GetColumnName = CVErr(xlVar)

  Else

    GetColumnName = Left$(Cells(1, intSpaltennummer).Address(False, False), _

      Len(Cells(1, intSpaltennummer).Address(False, False)) - 1)

  End If

End Function
und dann:
    Columns(GetColumnName(2) & ":" & GetColumnName(4)).Select

s'Amstel

dankeschön. werd ich nachher mal testen...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.