Assign cell content to variable

Hello,

In VBA (Excel 2003), I am trying to assign the content of a cell to a variable. I tried it like this:

 Dim Type As String Type = wsExcel.Range("L" & Lig).Value


but it's not working!
If you have any solutions to propose, thank you!

Configuration: Windows 2000 Firefox 2.0.0.14

7 answers

  1. ok ... sorry for not being able to help you more ...

    Also try (maybe) declaring sType as a variant, isn't column L formatted?

    Good luck.

    ;o)

    polux
    --
    “What is well conceived is clearly stated, and the words to say it come easily.”
    Nicolas Boileau