ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error using CommandLineA (https://www.excelbanter.com/excel-programming/352744-error-using-commandlinea.html)

redf1re[_5_]

Error using CommandLineA
 

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


--
redf1re
------------------------------------------------------------------------
redf1re's Profile: http://www.excelforum.com/member.php...o&userid=31258
View this thread: http://www.excelforum.com/showthread...hreadid=510001


redf1re[_6_]

Error using CommandLineA
 

:) :eek: :eek: :eek: :) up


--
redf1re
------------------------------------------------------------------------
redf1re's Profile: http://www.excelforum.com/member.php...o&userid=31258
View this thread: http://www.excelforum.com/showthread...hreadid=510001



All times are GMT +1. The time now is 12:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com