J
John
I'm writing a macro which should create a new worksheet,
then transfer data from an existing worksheet to the new
worksheet.
My problem is that the name of the new worksheet is
defined when worksheet is created. Its name is random,
depending on the number of existing worksheets at the
time. I want the macro to be general, working when there
are any number of sheets in the workbook.
I can't figure out how to change the name of the new
worksheet to some contstant name, so that I can refer to
then it and know the macro will work for an arbitrary
worksheet.
thanks
John
then transfer data from an existing worksheet to the new
worksheet.
My problem is that the name of the new worksheet is
defined when worksheet is created. Its name is random,
depending on the number of existing worksheets at the
time. I want the macro to be general, working when there
are any number of sheets in the workbook.
I can't figure out how to change the name of the new
worksheet to some contstant name, so that I can refer to
then it and know the macro will work for an arbitrary
worksheet.
thanks
John