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.

Zellen in Excel mittels "Visual Basic" formatieren

Empfohlene Antworten

Dim xlsApp      As Excel.Application

Dim xlsWBook    As Excel.Workbook

Dim xlsWSheet   As Excel.Worksheet

...

xlsWSheet.Cells(1, 1) = "test"

...

Set xlsWSheet = Nothing

Set xlsWBook = Nothing

Set xlsApp = Nothing

Frage, wie schafft man es jetzt die Hintergrundfarbe der Zelle (1,1) in z.B. rot zu ändern? (Mit VBA funktioniert es mittels ActiveCell, aber in "Visual Basic"? :rolleyes: )

mfg

SYRARE

Dim TB as worksheet

Set e = CreateObject("Excel.Application")

e.Workbooks.Open (Dateipfad)

Set TB = e.Workbooks(1).Worksheets(1)

TB.Cells(Zeilennummer, Spaltennummer).Interior.ColorIndex = 0 'hiermit wird eingefärbt (hier die Farbnummern ausprobieren, keine Ahnung was rot oder so ist

'Fett und Font:

TB.Cells(Zeilennummer, Spaltennummer).Font.Bold = True

TB.Cells(Zeilennummer, Spaltennummer.Font.Size = 12

'alles dicht machen

e.Workbooks(1).Save

'Beenden

e.Quit

Set e = Nothing

greets

Buell

Danke

mfg

SYRARE

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.