good day,
I am here again seeking help since I was not able to find any solution upon searching the net...
I have an excel sheet that has more than 100 sheets, my goal is to simplify the data on each sheet into single sheet.
each sheet has normal label like name, date, numbers, etc.
my single sheet output will have the table which are the headings are the labels, and rows will be the data from labels.
My request now is how to make vba that will make the data on each sheet will be recorded in a single sheet.
I have started a code:
<code>
And I tried running the code, I am stuck on vlookup saying that it is lacking object, been all searching different samples, but I cant find any for my problem..
Thank you in advance for the help...</code></code>
I am here again seeking help since I was not able to find any solution upon searching the net...
I have an excel sheet that has more than 100 sheets, my goal is to simplify the data on each sheet into single sheet.
each sheet has normal label like name, date, numbers, etc.
my single sheet output will have the table which are the headings are the labels, and rows will be the data from labels.
My request now is how to make vba that will make the data on each sheet will be recorded in a single sheet.
I have started a code:
<code>
Code:
[/FONT]Sub record()
Worksheets("data").Range("z2").Value = ActiveSheet.Index
Do Until Worksheets("data").Range("z2").Value = 1
ActiveSheet.Select
NewRow = Worksheets("data").Range("z1").Value
Worksheets("data").Cells(NewRow, 1).Value = Application.WorksheetFunction.VLookup("P.O Date*", Range("f6:g100"), 2, False).Value
Worksheets("data").Cells(NewRow, 13).Value = Application.WorksheetFunction.VLookup("Supplier*", Range("a6:c100"), 3, False).Value
Worksheets("data").Cells(NewRow, 16).Value = Application.WorksheetFunction.VLookup("Amount:*", ActiveSheet.Range("h1:i100"), 2, False).Value
Worksheets("data").Cells(NewRow, 14).Value = Format(Application.WorksheetFunction.VLookup("Date of Delivery:*", ActiveSheet.Range("a1:c100"), 3, False).Value, "[$-F800]dddd, mmmm dd, yyyy")
Worksheets("data").Cells(NewRow, 3).Value = Application.WorksheetFunction.VLookup("requested by*", ActiveSheet.Range("a1:c100"), 2, False).Value
Worksheets("data").Cells(NewRow, 12).Value = Application.WorksheetFunction.VLookup("P.O No.*", ActiveSheet.Range("f1:g100"), 2, False).Value
Worksheets("data").Cells(NewRow, 17).Value = Application.WorksheetFunction.VLookup("Mode of Procurement*", ActiveSheet.Range("f1:g100"), 2, False).Value
Worksheets("data").Cells(NewRow, 2).Value = "PR No.: " & Application.WorksheetFunction.VLookup("PR No.*", ActiveSheet.Range("h1:i100"), 2, False).Value
If ActiveSheet.Index = 1 Then
Worksheets(1).Select
End
Else
ActiveSheet.Previous.Select
End If
Loop
End Sub<code>[FONT=Verdana]
And I tried running the code, I am stuck on vlookup saying that it is lacking object, been all searching different samples, but I cant find any for my problem..
Thank you in advance for the help...</code></code>
Last edited: