vba - Print sheetnames on separate sheet -


i have created vba code through create list of sheet names in excel. print values in sheet "blad2" in cell a1, a2, a3 etc...

anybody thoughts on how can this? got code below working overwriting code in cell a2...

sub namessheet()  = 1 sheets.count     var = sheets(i).name     worksheets("blad2").range("a2") = var next   end sub 

you have set counter cell sub namessheet()

for = 1 sheets.count     var = sheets(i).name     worksheets("blad2").cells(i,1) = var next   end sub 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -