Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Cell Value to String?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ren - 12 Nov 2007 21:42 GMT
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?
Gary''s Student - 12 Nov 2007 21:54 GMT
1. I don't see where numWS is set
2. use Range("E8") and not Cells("E8")
Signature

Gary''s Student - gsnu200755

Ren - 13 Nov 2007 07:36 GMT
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.

> 1. I don't see where numWS is set
> 2. use Range("E8") and not Cells("E8")
Ren - 13 Nov 2007 08:08 GMT
Changing Cells to Range did the trick. I wonder why Cells() won't work.

> 1. I don't see where numWS is set
> 2. use Range("E8") and not Cells("E8")
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.