| |
|
|
Stephan Sonneborn | Hello together,
can someone say, why I with the Source no Variablennamen with Excel lay out, The with C, R, s or Z begin?
'***************************************************************************************************
' Header-Files loading *
'***************************************************************************************************
$H Messages.ph
$H windows.ph
$H OCX3a.PH
'***************************************************************************************************
'***************************************************************************************************
' Include-Files loading *
'***************************************************************************************************
$I OCX3a.Inc
ocxInit()
WINDOWSTYLE 1 + 2 + 8+ 16 + 512
WINDOW 640,480
Declare end%,Excel&,Ocxtest%,Sheet&,Vorlage&, Region&, KeineAhnung& ,Workbook&, Excelbook&, Range&, Names&, Name& , VarName$
Excel&=ocxcreate("Excel.Application")
ocxput(Excel&,"visible",1)
Workbook&=ocxget(Excel&,"Workbooks")
Excelbook&=ocxMethod(Workbook&,"open","d:\\mappe1.xls")
Sheet&=ocxget(Excelbook&,"ActiveSheet")
Range&=ocxget(Sheet&,"Range","A1")
Names&=ocxGet(Excelbook&,"Names")
Print ocxget(Names&,"Count")
whileloop 26
SELECT &LOOP
CASEOF 3,18,19,26
OTHERWISE
VarName$ = chr $(64+&LOOP)
print varname$, &Loop
ocxMethod(Names&,"Add", VarName$, "Tabelle1!A"+st$(&LOOP) ,1)
ENDSELECT
ENDWHILE
WhileNot end%
WaitInput
if %key=2
end%=1
EndIf
EndWhile
ocxdeInit()
code geupdated! |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 04/24/12 ▲ |
|
|
|
|
Jörg Sellmeyer | Öhm - I wealth time therefore:
the are very The Values in the Loop, The You abfängst, in them but nothing happens. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 04/24/12 ▲ |
|
|
|
|
Stephan Sonneborn | Jörg Sellmeyer (24.04.12)
Öhm - I wealth time therefore: CASEOF 3,18,19,26 the are very The Values in the Loop, The You abfängst, in them but nothing happens.
*LOL*
thanks for Info, Jörg, but I Have The values extra rausgenommen, because very The values a ocx-Feher produced...
Getestet watts the whole under Excel 2010 and Win7 64bit.
I habs now again with Excel 2003 and Win7 32bit probiert: there GEHTS!
|
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 04/24/12 ▲ |
|
|
|
|
Jörg Sellmeyer | Do you have it time with lower case attempts? |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 04/24/12 ▲ |
|
|
|
|
Andreas Koch | Hello Stephan,
the lying presumably on it, that Excel Z and s in the german for out at ansieht and properly R and C as Row and Column in the english. down stehendem Link these letters for Excel "reservierte Worte"... [...]
lovely Greeting
Andreas cook |
|
|
| |
|
|