|
-
Oct 26th, 2004, 04:37 AM
#1
Thread Starter
New Member
Excel problem
Hello!
I hava an application that creates an excel file and writes some data to it. I use this function
Private Sub Plot_The_Name(ByVal nCurrentRow As Integer, ByVal sName As String)
wkbNewBook.ActiveSheet.Range(col & nCurrentRow).Value = sName
End Sub
The problem is that if i write 150/2 to a cell, excel thinks it should calculate this and writes 75 in hte cell.
So does anyone know how to solve this.
There must be someway to set the format of the cell to text or??
Ok I solved it
wkbNewBook.ActiveSheet.Range(col & nCurrentRow).NumberFormat = "@"
Thanks
Pjoter
Last edited by Pjoter; Oct 26th, 2004 at 05:10 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|