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.

Excel-Zelle in VB

Empfohlene Antworten

Hi Leutz! :)

Yo ich hab dieses Druckbereichfenster, was es in Excel (Datei-Seite einrichten-Tabelle-Druckbereich) gibt programmiert und möchte von meiner VB-Anwendung aus Excel öffnen (hab ich auch schon programmiert) und in Excel meinen Druckbereich mit MEINEM Druckfenster festlegen. Hab mir dazu ein Makro aufgezeichnet, aber die Zeilenerfassung funzt noch nich :(

Er gibt mir irgendwo unten in der Tabelle eine Reihe von Zellen in das Druckbereichsfenster. Ich vermute, dass es an dem "currentregion" scheitert....

also ich will die in Excel markierte Zelle in mein Druckbereichsfenster angezeigt bekommen.

Private Sub cmdTest_Click()

Dim xlsApp As Excel.Application

Set xlsApp = Excel.Application

With xlsApp

'Show Excel

.Visible = True

.Workbooks.Open (frmGlobalParms.txtPathExcel)

End With

frmPrint.Show

Unload frmMain

--> nun kommt das Makro:

With ActiveSheet.PageSetup

.PrintTitleRows = ""

.PrintTitleColumns = ""

End With

ActiveSheet.PageSetup.PrintArea = ActiveCell.CurrentRegion.Address

frmPrint.txtPrint = ActiveSheet.PageSetup.PrintArea

End Sub

Thx

Flöckchen :bimei

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.