Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Passing a parameter to Excel

Tom,

your question is a bit unprecise..

what do you want to achieve?

passing it from where to where?
from vba to excel or from a userform to excel or
from another application (via vba) to excel?

or do you mean ole or DDE?



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Walker" wrote:

Hi,

How do I pass a parameter to excel? a string?

Thanks,
Tom


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Passing a parameter to Excel

Hi,

Thanks for the reply.

I would be opening an excel spreadsheet from a
powerbuilder application.

Something like this:

excel myexcelsheet.xls thisistheparam

where thisistheparam is my parameter. How would I access
the string "thisistheparam" in workbook_open event?

Thanks,
Tom


-----Original Message-----
Tom,

your question is a bit unprecise..

what do you want to achieve?

passing it from where to where?
from vba to excel or from a userform to excel or
from another application (via vba) to excel?

or do you mean ole or DDE?



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Walker" wrote:

Hi,

How do I pass a parameter to excel? a string?

Thanks,
Tom


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Passing a parameter to Excel

Is there any other way I can do this? I thought this
would be simple one to handle after handling some pivot
table programming, doesnt look like so :-)

Tom


-----Original Message-----

don't think it can be done that way, the only thing that

came to mind is
application.caller.. tested that but it gives an error.

checked help,
cant be used.


But:....

Either you'll have to pass them via ole AFTER Excel has

started.

see www.sybase.com/home
search for powerbuilder OLE

#44559: OLE Automation for Clients and Servers
#44643: Using OLE with Powerbuilder and MS Office 97

(Word 8)

Or write them to a small textfile in a known location...
and read that file in Workbook_open

Or copy them on the clipboard and have workbook_open
paste it somewhere...

just improvising here... sorry :)




keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Walker" wrote:

Hi,

Thanks for the reply.

I would be opening an excel spreadsheet from a
powerbuilder application.

Something like this:

excel myexcelsheet.xls thisistheparam

where thisistheparam is my parameter. How would I

access
the string "thisistheparam" in workbook_open event?

Thanks,
Tom


-----Original Message-----
Tom,

your question is a bit unprecise..

what do you want to achieve?

passing it from where to where?
from vba to excel or from a userform to excel or
from another application (via vba) to excel?

or do you mean ole or DDE?



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Walker" wrote:

Hi,

How do I pass a parameter to excel? a string?

Thanks,
Tom


.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Passing a parameter to Excel

Sorry Tom,

depends on what/why you need to pass a parameter?

you can either have excel read from the database via odbc.. (staying
within excel vba)

or maybe check if you can set a reference in excel to an object library
from sybase?

or maybe you can control it from powerbuilder (make a reference to excel
object library in sybase?.. and run most code there.

Sorry for ruining this thread with my useless comments..

You'd better start a fresh thread tomorrow... time it carefully though..
if you post it too early the gurus will miss it, as there will be ten or
hundred more recent posts. If late like now.. they're all gone :(

Also be specific in your header and your question.

Powerbuilder.. starting excel and passing variables. How?

then in the post explain exactly what your trying to do.





keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Walker" wrote:

Is there any other way I can do this? I thought this
would be simple one to handle after handling some pivot
table programming, doesnt look like so :-)

Tom


-----Original Message-----

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to choose if I use a parameter or not in a parameter query Arnaud Excel Discussion (Misc queries) 0 March 8th 07 01:19 PM
Passing Excel Info To Visio Rob Excel Discussion (Misc queries) 0 January 10th 07 08:25 PM
passing excel certification infancy9 Excel Worksheet Functions 1 April 21st 06 07:08 PM
Passing parameter from Excel to stored procedure? hmmm... Excel Programming 1 July 25th 03 02:59 PM
passing variables from excel to word Mike NG Excel Programming 8 July 22nd 03 12:08 PM


All times are GMT +1. The time now is 12:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"