Excel assign copied sheet name as variable
Posted
by rach-90
on Stack Overflow
See other posts from Stack Overflow
or by rach-90
Published on 2010-06-09T18:15:09Z
Indexed on
2010/06/09
18:52 UTC
Read the original article
Hit count: 165
excel-vba
I'm trying to copy an existing sheet in my workbook and then I want to use the copied sheet to run the rest of my code. (Sheet3 is the existing sheet, S_Temp is the copied sheet)
Dim s_Temp as string
Sheet3.copy
Activesheet.name = S_Temp
Sheets("S_Temp").Range("A1").value = "Test"
How can I reference to the copied sheet?
© Stack Overflow or respective owner