I need a code to do the following.
I have a sheet of job numbers (called FTBJOB2). The job numbers are located in column b of each row. There is then data pertaining to that job in the remainder of the row. For example Row 13 has job number 123 in column b Then in column c through about ak is the data for that job. There is a new sheet created for each job using the job number as the sheet name. I need a macro to do the following, after the cell containing the job number is selected on the active sheet (called FTBJOB2)
1. search the workbook for a sheet call "that job" number
3. if not found then message box "Job card (number in selected cell) doesn't exist" end sub
4. if sheet with job number from selection is found, then copy entire row of that selected cell in FTBJOB2 and paste it in row 56 of the sheet with that name (from column 2)
5. Message box "job card updated successfully
6. return to FTBJOB2 A1
I hope this makes sense.
Thank to all you wonderful people and all your help
Regards
Jason Bing
I have a sheet of job numbers (called FTBJOB2). The job numbers are located in column b of each row. There is then data pertaining to that job in the remainder of the row. For example Row 13 has job number 123 in column b Then in column c through about ak is the data for that job. There is a new sheet created for each job using the job number as the sheet name. I need a macro to do the following, after the cell containing the job number is selected on the active sheet (called FTBJOB2)
1. search the workbook for a sheet call "that job" number
3. if not found then message box "Job card (number in selected cell) doesn't exist" end sub
4. if sheet with job number from selection is found, then copy entire row of that selected cell in FTBJOB2 and paste it in row 56 of the sheet with that name (from column 2)
5. Message box "job card updated successfully
6. return to FTBJOB2 A1
I hope this makes sense.
Thank to all you wonderful people and all your help
Regards
Jason Bing