Results 1 to 4 of 4

Writing simulations as .csv files

Threaded View

lukegerd Writing simulations as .csv... 01-29-2013, 02:43 PM
Alf Re: Writing simulations as... 01-29-2013, 03:27 PM
lukegerd Re: Writing simulations as... 01-31-2013, 08:19 PM
Alf Re: Writing simulations as... 02-01-2013, 03:09 AM
  1. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Writing simulations as .csv files

    Prehaps a macro along thes lines?

    Option Explicit
    
    Sub WritePDF()
    Dim i As Integer
    
    For i = 1 To 200 ' This will loop
    
    ' Your macro to update range M3:R13 goes here
    
    Range("M3:R13").ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
            "C:\Temp\" & "Result" & i & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True _
            , IgnorePrintAreas:=False, OpenAfterPublish:=False
            
     ' or you can put it here
     
     Next i
    
    
    End Sub
    Filename will go from "Result1.pdf" to "Result200.pdf" where files will be saved in folder "C:\Temp\" this you have to change to fit your needs.

    Works with Excel 2007 but not quite sure it works with Excel 2010 so you better test.

    Alf
    Last edited by Alf; 01-29-2013 at 03:33 PM.

Thread Information

Users Browsing this Thread

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

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