![]() |
Cell Value to String?
I am trying to get a string from a cell value so that I can use indirect to
reference tabs. The tab names are in a column in tab "User Guide". I used the code: Dim tabName(0 To numWS - 1) As String tabName(0) = Worksheets("User Guide").Cells("E8").Value Whenever I try to run the macro. i get a "type mismatch" error. Can someone help me out? |
Cell Value to String?
1. I don't see where numWS is set
2. use Range("E8") and not Cells("E8") -- Gary''s Student - gsnu200755 |
Cell Value to String?
Thanks. Changing Cells() to Range() did the trick. I wonder why cells() can't
accept string values. I don't seem to have problem with numeric values. "Gary''s Student" wrote: 1. I don't see where numWS is set 2. use Range("E8") and not Cells("E8") -- Gary''s Student - gsnu200755 |
Cell Value to String?
Changing Cells to Range did the trick. I wonder why Cells() won't work.
"Gary''s Student" wrote: 1. I don't see where numWS is set 2. use Range("E8") and not Cells("E8") -- Gary''s Student - gsnu200755 |
All times are GMT +1. The time now is 05:42 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com