A Arvi Laanemets Dec 2, 2004 #2 Hi Copy the function below into VBA module Public Function TabByIndex(TabIndex As Integer) As String Application.Volatile TabByIndex = Sheets(TabIndex).Name End Function Into A1 enter the formula =IF(ISERROR(TABBYINDEX(ROW())),"",TABBYINDEX(ROW())) and copy down.
Hi Copy the function below into VBA module Public Function TabByIndex(TabIndex As Integer) As String Application.Volatile TabByIndex = Sheets(TabIndex).Name End Function Into A1 enter the formula =IF(ISERROR(TABBYINDEX(ROW())),"",TABBYINDEX(ROW())) and copy down.
D D@annyBoy Dec 2, 2004 #3 thanks works like a charm Arvi Laanemets said: Hi Copy the function below into VBA module Public Function TabByIndex(TabIndex As Integer) As String Application.Volatile TabByIndex = Sheets(TabIndex).Name End Function Into A1 enter the formula =IF(ISERROR(TABBYINDEX(ROW())),"",TABBYINDEX(ROW())) and copy down. Click to expand...
thanks works like a charm Arvi Laanemets said: Hi Copy the function below into VBA module Public Function TabByIndex(TabIndex As Integer) As String Application.Volatile TabByIndex = Sheets(TabIndex).Name End Function Into A1 enter the formula =IF(ISERROR(TABBYINDEX(ROW())),"",TABBYINDEX(ROW())) and copy down. Click to expand...
R Roman Dec 3, 2004 #4 Try this macro: sub sheets_list() r=activecell.row s=activecell.column for a = 0 to sheets.count-1 cells(r+a,s).value = sheets(a+1).name next a end sub
Try this macro: sub sheets_list() r=activecell.row s=activecell.column for a = 0 to sheets.count-1 cells(r+a,s).value = sheets(a+1).name next a end sub