Error using CommandLineA

R

redf1re

hi..... im using excel 2003 and windows xp, running the following code
im getting an error, which excel doesnt even open

Public Declare Function GetCommandLineA Lib "Kernel32" ()

Sub probe()
Dim s As String
s = String(255, " ")
s = GetCommandLineA
MsgBox s
End Sub

ive searched hard on the internet and apparently many people gets this
error, but i cant find a solution anywhere
strange thing is that in word 2003 it works fine.....
someone with a good heart would help me ? ;D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top