Results 1 to 12 of 12

VBA to copy details from excel and save as PDF

Threaded View

arun.sj VBA to copy details from... 08-19-2020, 06:05 AM
Sintek Re: VBA to copy details from... 08-19-2020, 07:14 AM
arun.sj Re: VBA to copy details from... 08-19-2020, 07:44 AM
Sintek Re: VBA to copy details from... 08-19-2020, 07:50 AM
arun.sj Re: VBA to copy details from... 08-19-2020, 08:10 AM
Sintek Re: VBA to copy details from... 08-19-2020, 08:17 AM
arun.sj Re: VBA to copy details from... 08-19-2020, 08:36 AM
Sintek Re: VBA to copy details from... 08-19-2020, 08:48 AM
arun.sj Re: VBA to copy details from... 08-20-2020, 05:04 AM
Sintek Re: VBA to copy details from... 08-20-2020, 06:29 AM
arun.sj Re: VBA to copy details from... 08-21-2020, 02:02 AM
Sintek Re: VBA to copy details from... 08-21-2020, 03:33 AM
  1. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy details from excel and save as PDF

    but only the header is available in the PDF
    Not with the sample file...see result...


    Try this ... small change...
    Sub sintek()
    Dim Data, Dict As Object, Path As String, i As Long, lr As Long
    Set Dict = CreateObject("Scripting.Dictionary")
    Path = "E:\Steven\Desktop\" ' ! Change to your save Path......
    With Cells(1).CurrentRegion
        Data = .Value
        For i = 2 To UBound(Data, 1)
            If Not Dict.exists(Data(i, 5)) Then
                Dict.Add Data(i, 5), 1
                .AutoFilter 5, Data(i, 5)
                lr = Parent.Range("A" & Rows.Count).End(xlUp).Row
                Parent.Range("A1:F" & lr).ExportAsFixedFormat xlTypePDF, Path & Data(i, 5), xlQualityStandard
                .AutoFilter
            End If
        Next i
    End With
    End Sub
    Attached Files Attached Files
    Last edited by Sintek; 08-19-2020 at 07:56 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 02-22-2018, 03:55 AM
  2. [SOLVED] Email Details to Excel & Save as .MSG on one macro - combination of 2 macros
    By nathandavies9 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 03-21-2017, 12:17 PM
  3. [SOLVED] Excel formula needed to find string and then copy details from another cell
    By jopat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2014, 10:10 PM
  4. [SOLVED] how can i search and copy details of a particular User details in Sheet1
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 02:58 AM
  5. Save Email Details in excel file
    By s_samira_21 in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2014, 04:12 AM
  6. Replies: 0
    Last Post: 08-21-2012, 01:19 AM
  7. Can I get excel to auto save details from a cell into the doc nam.
    By excelnewbie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2005, 03:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1