View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default To include Depot

Thanks for the help Chip.

Can you use Instr without the 1 as the first argument? <g

--
Regards,
Tom Ogilvy


"Chip Pearson" wrote in message
...
you can't have spaces in sheet names.


Huh? Worksheet names can certainly contain spaces.

Worksheets(1).Name = "the name"

works fine for me.



"Tom Ogilvy" wrote in message
...
you can't have spaces in sheet names.

Set wksT = GetWorksheet(wks.Parent, _
"" & Left(cell.Text, 8)) & "_Depot"

--
Regards,
Tom Ogilvy


"Steved" wrote in message
...
Hello From Steved

Set wksT = GetWorksheet(wks.Parent, _
"Sheet" & Left(cell.Text, 2))

I've made Changes to the above

Set wksT = GetWorksheet(wks.Parent, _
"" & Left(cell.Text, 8))

It now names the sheet "Papakura" instead of SheetPapakura.
Please what Do I enter in the above code to add Depot
as an example "Papakura Depot".

Thankyou.