Over the years I have collected a lot of recipes and saved them in the TXT format, thought it help to conserve hard drive space this way.
Now, that I am wanting to make an ePub from them in order to have on my Ipad1 (old version like me) and be able to take with me into the kitchen, I have noticed that Calibre likes DOCX or HTML files. I tried opening each of the txt file in Word 2007 and then doing all of the formatting and then saving as a doc or docx file. But I just have to many recipes to do this each and every individual file. So I need help, is there a macro I can use to help this old man resolve this dilemma of mine?
Here is the formatting in a macro I started with on with DOC files but do not know how to go from here and make it Loop through all of the files in the folder I use C:RecipesTxt2Doc
Sub PageTxtFontHeader1()
‘
‘ PageTxtFontHeader1 Macro
‘
‘
With Selection.PageSetup
.LineNumbering.Active = False
.Orientation = wdOrientPortrait
.TopMargin = InchesToPoints(0.6)
.BottomMargin = InchesToPoints(0.6)
.LeftMargin = InchesToPoints(0.6)
.RightMargin = InchesToPoints(0.6)
.Gutter = InchesToPoints(0)
.HeaderDistance = InchesToPoints(0.5)
.FooterDistance = InchesToPoints(0.5)
.PageWidth = InchesToPoints(8.5)
.PageHeight = InchesToPoints(11)
.FirstPageTray = wdPrinterDefaultBin
.OtherPagesTray = wdPrinterDefaultBin
.SectionStart = wdSectionNewPage
.OddAndEvenPagesHeaderFooter = False
.DifferentFirstPageHeaderFooter = False
.VerticalAlignment = wdAlignVerticalTop
.SuppressEndnotes = False
.MirrorMargins = False
.TwoPagesOnOne = False
.BookFoldPrinting = False
.BookFoldRevPrinting = False
.BookFoldPrintingSheets = 1
.GutterPos = wdGutterPosLeft
End With
Selection.WholeStory
Selection.Font.Name = “Times New Roman”
Selection.Font.Size = 11
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.HomeKey Unit:=wdStory
Selection.Style = ActiveDocument.Styles(“Heading 1”)
End Sub
If anyone can help guide me I would greatly appreciate it.
Thanks,
The Old Man