I think I am doing something wrong because nothing happens
----- JulieD wrote: ----
Hi Tro
yes it is a macro, as AFAIK there is no worksheet function that will retur
the index number of a visible sheet
to use the macro
right mouse click on any of your sheet tab
and choose view cod
this will open up the VB Edito
on the left hand side you should see the name of your workbook in bold (an
brackets) and under that a thing called "ThisWorkbook
double click on ThisWorkbook and a white piece of paper should appear on th
right hand side of the scree
cut & paste the code into this white sheet of paper fro
befor
Sub Workshee
right to the end of End su
now choose from the men
Debug / Compile VBA Projec
this will show you any errors - none should come up but its a good test
now close the VB Editor using the top
and save your workbook - the code should run just before it performs th
save
You might like to check it out in a blank workbook with a couple of sheet
hidden before putting it in your workbook
It is also a good idea before testing out any code etc to make a backup cop
of your workbook - just in cas
let us know how you go
Cheer
Julie
Troy said:
Is this a Macro? I know nothing of Macros