Telefonszámunk: 1-472-0679

Hozzászólás: [Resolved] Nyomtatás

Kezdőlap Fórumok Excel témák [Resolved] Nyomtatás Hozzászólás: [Resolved] Nyomtatás

#6341
Titok
Felhasználó

    Csináltam egy egyszerű makrót.
    Ha anyomtatás nem menne, akkor rögzíts egy nyomtatást, a példányt írd át pld-nek, és menni fog.
    Nem engedi feltölteni.
    Bemásolom ide akkor:

    Sub Makró1()

    ‘ Makró1 Makró


    Sheets(„Munka1”).Select

    utolso = Cells(Rows.Count, „A”).End(xlUp).Row

    For i = 2 To utolso

    Sheets(„Munka1”).Select
    uz = Cells(i, 1).Value
    pld = Cells(i, 2).Value
    Sheets(„Munka3”).Select
    Cells(3, 4).Value = uz

    Application.PrintCommunication = False
    With ActiveSheet.PageSetup
    .PrintTitleRows = „”
    .PrintTitleColumns = „”
    End With
    Application.PrintCommunication = True
    ActiveSheet.PageSetup.PrintArea = „”
    Application.PrintCommunication = False
    With ActiveSheet.PageSetup
    .LeftHeader = „”
    .CenterHeader = „”
    .RightHeader = „”
    .LeftFooter = „”
    .CenterFooter = „”
    .RightFooter = „”
    .LeftMargin = Application.InchesToPoints(0.708661417322835)
    .RightMargin = Application.InchesToPoints(0.708661417322835)
    .TopMargin = Application.InchesToPoints(0.748031496062992)
    .BottomMargin = Application.InchesToPoints(0.748031496062992)
    .HeaderMargin = Application.InchesToPoints(0.31496062992126)
    .FooterMargin = Application.InchesToPoints(0.31496062992126)
    .PrintHeadings = False
    .PrintGridlines = False
    .PrintComments = xlPrintNoComments
    .CenterHorizontally = False
    .CenterVertically = False
    .Orientation = xlLandscape
    .Draft = False
    .PaperSize = xlPaperA4
    .FirstPageNumber = xlAutomatic
    .Order = xlDownThenOver
    .BlackAndWhite = False
    .Zoom = False
    .FitToPagesWide = 1
    .FitToPagesTall = 1
    .PrintErrors = xlPrintErrorsDisplayed
    .OddAndEvenPagesHeaderFooter = False
    .DifferentFirstPageHeaderFooter = False
    .ScaleWithDocHeaderFooter = True
    .AlignMarginsHeaderFooter = True
    .EvenPage.LeftHeader.Text = „”
    .EvenPage.CenterHeader.Text = „”
    .EvenPage.RightHeader.Text = „”
    .EvenPage.LeftFooter.Text = „”
    .EvenPage.CenterFooter.Text = „”
    .EvenPage.RightFooter.Text = „”
    .FirstPage.LeftHeader.Text = „”
    .FirstPage.CenterHeader.Text = „”
    .FirstPage.RightHeader.Text = „”
    .FirstPage.LeftFooter.Text = „”
    .FirstPage.CenterFooter.Text = „”
    .FirstPage.RightFooter.Text = „”
    End With
    ‘pld a példányszám
    Application.PrintCommunication = True
    ActiveWindow.SelectedSheets.PrintOut Copies:=pld, Collate:=True, _
    IgnorePrintAreas:=False

    Next i

    End Sub

    Attachments:
    You must be logged in to view attached files.