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.

Strings in VBA

Empfohlene Antworten

Ein neuer Tag ein neues Problem:

Wie kann ich einzelne Stellen eines Strings auslesen und anschliessend einen neuen String zusammenbauen, sodass eine Adresse einer Excelzelle rauskommt??

Bsp:

Bekomme folgende Strings beim xy.Address befehl:

String 1: $B$3

String 2: $A$31

Aus diesen beiden Strings möchte ich nun einen neuen machen, mit der

Info: B31

Wie kann man sowas machen, dass ich später im Code stehen habe:

Range("b31").Activate

DANKE EUCH

Versuchs mal so:

'...

'String1 und String2 sind definiert und haben die Werte aus deinem Beispiel.

'die Variable StringNew ist auch definiert.


'StringNew =  2. Buchstaben aus String1 

StringNew = Mid(String1,2,1)


'String wird ergänzt durch die Zeile aus String2

StringNew = StringNew + Mid(String2,4)


'Die eine Zelle wird activiert

Range(StingNew).Activate

Dieser Codeschnippsel geht davon aus das die Spalte nur eine Stelle hat, also Spalten bis 26 Spalten.

<FONT COLOR="#a62a2a" SIZE="1">[ 15. November 2001 11:04: Beitrag 3 mal editiert, zuletzt von mst ]</font>

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.