Using range to fill in cell values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have this bit of code that I use to fill in sheet names for a large report.
I am trying to conserve space. Also, it doesn't work. I get a 438 runtime
error. I need to know how to fix this so the object does work.

'Rename Sheets
i = 1
For Each c In SheetNames
Sheets(i).Names = c.Value
i = i + 1
If i = 19 Then Exit For
Next c

Regards,
N
 
It is a set range (object) that I created. It is bound early and contains
string variables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top