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 Spaltenauswahl MSProject

Empfohlene Antworten

Veröffentlicht

Hallo,

Und zwar habe ich folgendes problem bei der spaltenauswahl via makro der standard code den auch dsa makro hergibt wäre ja z.b. dieser:

Sub Macro6()

SelectTaskField Row:=4, Column:="Name"

SelectTaskField Row:=8, Column:="Anfang"

SelectTaskField Row:=5, Column:="Name"

SelectTaskField Row:=3, Column:="Anfang"

SelectTaskField Row:=-14, Column:="Anfang"

SelectTaskField Row:=0, Column:="Dauer"

End Sub

Aber ich möchte das er nicht nur eine exakt "benamte" spalte auswählt sondern nur spalte 1, 2, 3, usw...

Praktisch so:

Sub Macro6()

SelectTaskField Row:=4, Column:=1

SelectTaskField Row:=8, Column:=2

SelectTaskField Row:=5, Column:=3

SelectTaskField Row:=3, Column:=4

SelectTaskField Row:=-14, Column:=5

SelectTaskField Row:=0, Column:=6

End Sub

Die Row auswahl ist egal ich will nur erreichen das kein bestimmter spalten name sondern nur eine spalten position eben spalte 1 dann spalte 2 dann spalte 3 ausgewählt wird das wenns geht auch noch für MSProject und nicht excel, aber meine vba kenntnisse sind so ziehmlich bei 0 also wäre ich über eure hilfe sehr dankbar dankeschön

mfg shad

  • 1 Monat später...

Also wenn ich ein Makro aufzeichne und eine ganze Spalte markiere spuckt mir das Makro dann das aus.

 Columns("C:C").Select

Ist es das was du meinst oder habe ich dein Problem nicht richtig verstanden?

LG Cätch

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.