ashokpandian
New Member
- Joined
- Jan 13, 2016
- Messages
- 4
Hi All,
Sub SavePDF()
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="D:\Users\51441884\Desktop\Tracking tool\CAPA Form.pdf", _
OpenAfterPublish:=True
End Sub
Sub Copier()
Dim x As Integer
x = InputBox("Enter number of times to copy Sheet1")
For numtimes = 1 To x
ActiveWorkbook.Sheets("CAPA Form").Copy _
After:=ActiveWorkbook.Sheets("CAPA Form")
Next
ActiveWorkbook.Save
End Sub
This is the code i have in my worksheet but its not working.
My Requirement is simple. I need to populate the same type of form again and again in the same excel.
Sheet1- Registration Form (To enter the Form1 details and so on)
Sheet2-General Form (This form should be populate again and again depends on the information which entered in the sheet1 or Simply just populate again and again so that i will enter it manually)
Please explain with some example so that i can modify code for my requirement.
Sub SavePDF()
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="D:\Users\51441884\Desktop\Tracking tool\CAPA Form.pdf", _
OpenAfterPublish:=True
End Sub
Sub Copier()
Dim x As Integer
x = InputBox("Enter number of times to copy Sheet1")
For numtimes = 1 To x
ActiveWorkbook.Sheets("CAPA Form").Copy _
After:=ActiveWorkbook.Sheets("CAPA Form")
Next
ActiveWorkbook.Save
End Sub
This is the code i have in my worksheet but its not working.
My Requirement is simple. I need to populate the same type of form again and again in the same excel.
Sheet1- Registration Form (To enter the Form1 details and so on)
Sheet2-General Form (This form should be populate again and again depends on the information which entered in the sheet1 or Simply just populate again and again so that i will enter it manually)
Please explain with some example so that i can modify code for my requirement.