Can you provide more details? Are the holes at specific coordinates or are they just on an evenly spaced grid pattern? How many holes are you tapping?
G84 is the canned cycle for tapping on most machines. The G84 command normally includes the hole location, the depth, the pitch/feedrate and the clearance plane:
G84 X Y Z F R
Most machines do not need the entire line for additional holes so you just need to program the X Y location.
Some machines let you change the Z so you program X Y Z for holes at a different depth at a different location.