View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] stuart_bisset@yahoo.com is offline
external usenet poster
 
Posts: 8
Default name variable with 3 first characters of active cell

Sorry,

I have tried the following code

Sub test()
Dim var, var1
var = ActiveCell.Value
var1 = Left(var, 3)
Debug.Print var1
End Sub

and it worked fine on my machine (Excel 2000). There should not be a
problem with your code but I guess that doesn't help you.