Hi
I have a drop down which is based on a range called "employees". As I change the values in the drop time, the calcualtions in the spreadsheet automatically change in response to the new value in the drop down.
I use a macro as below, which automatically changes the values in the dropdown and for each value takes a print out.
Sub Printall()
Dim c As Range
For Each c In Range("employees")
Range("C5").Value = c.Value
ActiveSheet.PrintOut
Next c
End Sub
Now instead of taking a print out what I would like to do is for excel to make different tabs for each value in the drop down. So for example if there are 3 values in the range "employees" then 3 new tabs are created for each employee.
Does that make sense? Hopefully someone can help in changing the code.
Thanks
I have a drop down which is based on a range called "employees". As I change the values in the drop time, the calcualtions in the spreadsheet automatically change in response to the new value in the drop down.
I use a macro as below, which automatically changes the values in the dropdown and for each value takes a print out.
Sub Printall()
Dim c As Range
For Each c In Range("employees")
Range("C5").Value = c.Value
ActiveSheet.PrintOut
Next c
End Sub
Now instead of taking a print out what I would like to do is for excel to make different tabs for each value in the drop down. So for example if there are 3 values in the range "employees" then 3 new tabs are created for each employee.
Does that make sense? Hopefully someone can help in changing the code.
Thanks