Option Explicit
Const FOLDER_SAVED As String = "F:\1350\tset\" `Makes sure your folder path ends with a backward slash
Const SOURCE_FILE_PATH As String = "F:\1350\microteknik catagog.xlsx"
Sub TestRun()
Dim MainDoc As Document, TargetDoc As Document
Dim dbPath As String
Dim recordNumber As Long, totalRecord As Long
Set MainDoc = ActiveDocument
With MainDoc.MailMerge
'// if you want to specify your data, insert a WHERE clause in the SQL statement
.OpenDataSource Name:=SOURCE_FILE_PATH, sqlstatement:="SELECT * FROM [Sheet1$]"
totalRecord = .DataSource.RecordCount
For recordNumber = 1 To totalRecord
With .DataSource
.ActiveRecord = recordNumber
.FirstRecord = recordNumber
.LastRecord = recordNumber
End With
.Destination = wdSendToNewDocument
.Execute False
Set TargetDoc = ActiveDocument
TargetDoc.SaveAs2 FOLDER_SAVED & .DataSource.DataFields("CODE").Value & ".docx", wdFormatDocumentDefault
TargetDoc.ExportAsFixedFormat FOLDER_SAVED & .DataSource.DataFields("CODE").Value & ".pdf", exportformat:=wdExportFormatPDF
TargetDoc.Close False
Set TargetDoc = Nothing
Next recordNumber
End With
Set MainDoc = Nothing
End Sub
Introduction Apple is considered a healthy fruit, but many diabetes patients ask — is apple safe for diabetes or does it increase blood sugar? The good news is that apple can be included in a diabetes diet if eaten correctly. In this post, you’ll learn the right quantity, best time, and benefits of apple for diabetes patients. Can Diabetes Patients Eat Apple? Yes, apple is safe for diabetes patients when eaten in moderation. Apple has a low glycemic index and contains fiber, which helps slow down sugar absorption in the blood. The key is portion control and timing. Health Benefits of Apple for Diabetes Apple provides many health benefits for people with diabetes: • Rich in dietary fiber • Helps improve digestion • Supports heart health • Helps control sudden blood sugar spikes Right Quantity of Apple for Diabetes ✔ 1 small apple per day ✔ Best eaten with peel (washed properly) ❌ Avoid apple juice ❌ Avoid sweetened apple products Best Time to Eat Apple ✔ Morning time ✔ With brea...
Comments
Post a Comment
अपनी राय और सवाल यहाँ शेयर करें! कृपया अपने कमेंट्स में फालतू के स्पैम लिंक्स न डालें। आपके कीमती सुझावों का हमेशा स्वागत है।