Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Addressing a UserForm sub in a VB dll

Hi,

I have a userform call frmGraph, and currently in my excel application I am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll, and this
particular line is giving me the error object not found. Preceding it with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Addressing a UserForm sub in a VB dll

Have a look at the following article:

http://support.microsoft.com/default...;en-us;Q194611

Regards,

Alasdair Stirling

"Mangesh Yadav" wrote:

Hi,

I have a userform call frmGraph, and currently in my excel application I am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll, and this
particular line is giving me the error object not found. Preceding it with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Addressing a UserForm sub in a VB dll

Hi Alasdair,

Thanks for the response.

Infact my problem does not relate much to the VB dll. Its rather basic. I
want to know what is the parent of UserForm1.UserForm_Initialize

or starting from ThisWorkbook and using intellisense, how can one arrive at
UserForm1.UserForm_Initialize

Something like:
ThisWorkbook.SOMETHING.SOMETHING.UserForm1.UserFor m_Initialize



Mangesh


"Alasdair Stirling" wrote in
message ...
Have a look at the following article:

http://support.microsoft.com/default...;en-us;Q194611

Regards,

Alasdair Stirling

"Mangesh Yadav" wrote:

Hi,

I have a userform call frmGraph, and currently in my excel application I

am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll, and this
particular line is giving me the error object not found. Preceding it

with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Addressing a UserForm sub in a VB dll

Anyone on this yet....

Mangesh





"Mangesh Yadav" wrote in message
...
Hi Alasdair,

Thanks for the response.

Infact my problem does not relate much to the VB dll. Its rather basic. I
want to know what is the parent of UserForm1.UserForm_Initialize

or starting from ThisWorkbook and using intellisense, how can one arrive

at
UserForm1.UserForm_Initialize

Something like:
ThisWorkbook.SOMETHING.SOMETHING.UserForm1.UserFor m_Initialize



Mangesh


"Alasdair Stirling" wrote in
message ...
Have a look at the following article:

http://support.microsoft.com/default...;en-us;Q194611

Regards,

Alasdair Stirling

"Mangesh Yadav" wrote:

Hi,

I have a userform call frmGraph, and currently in my excel application

I
am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll, and

this
particular line is giving me the error object not found. Preceding it

with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Addressing a UserForm sub in a VB dll

Hi Mangesh,

Referring to your original question - you say you are converting everything
to a vb6 dll, so why are you trying to call a vba userform from your dll. Is
that indeed what you are trying to do?

I don't follow why you want to call UserForm_Initialize(). This event, and
code within, will run automatically as soon as you make the first reference
to the Userform. Typically that might be Load or Show, but could be any sort
of ref.

Regards,
Peter T

"Mangesh Yadav" wrote in message
...
Anyone on this yet....

Mangesh





"Mangesh Yadav" wrote in message
...
Hi Alasdair,

Thanks for the response.

Infact my problem does not relate much to the VB dll. Its rather basic.

I
want to know what is the parent of UserForm1.UserForm_Initialize

or starting from ThisWorkbook and using intellisense, how can one arrive

at
UserForm1.UserForm_Initialize

Something like:
ThisWorkbook.SOMETHING.SOMETHING.UserForm1.UserFor m_Initialize



Mangesh


"Alasdair Stirling" wrote

in
message ...
Have a look at the following article:

http://support.microsoft.com/default...;en-us;Q194611

Regards,

Alasdair Stirling

"Mangesh Yadav" wrote:

Hi,

I have a userform call frmGraph, and currently in my excel

application
I
am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll, and

this
particular line is giving me the error object not found. Preceding

it
with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does

not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Addressing a UserForm sub in a VB dll

Hi Peter,

Thanks for your response.

Basically I have an established excel application. And now I am turning some
of the excel macros into VB dll. The line
call UserForm1.UserForm_Initialize
runs well in excel, but it gives an error in the dll. So my question was
starting with ThisWorkbook, how do you arrive at UserForm1 using
intellisense.

For some reason, I want to run the Initialize event without an actual LOAD
Form call.


Mangesh




"Peter T" <peter_t@discussions wrote in message
...
Hi Mangesh,

Referring to your original question - you say you are converting

everything
to a vb6 dll, so why are you trying to call a vba userform from your dll.

Is
that indeed what you are trying to do?

I don't follow why you want to call UserForm_Initialize(). This event, and
code within, will run automatically as soon as you make the first

reference
to the Userform. Typically that might be Load or Show, but could be any

sort
of ref.

Regards,
Peter T

"Mangesh Yadav" wrote in message
...
Anyone on this yet....

Mangesh





"Mangesh Yadav" wrote in message
...
Hi Alasdair,

Thanks for the response.

Infact my problem does not relate much to the VB dll. Its rather

basic.
I
want to know what is the parent of UserForm1.UserForm_Initialize

or starting from ThisWorkbook and using intellisense, how can one

arrive
at
UserForm1.UserForm_Initialize

Something like:
ThisWorkbook.SOMETHING.SOMETHING.UserForm1.UserFor m_Initialize



Mangesh


"Alasdair Stirling" wrote

in
message ...
Have a look at the following article:

http://support.microsoft.com/default...;en-us;Q194611

Regards,

Alasdair Stirling

"Mangesh Yadav" wrote:

Hi,

I have a userform call frmGraph, and currently in my excel

application
I
am
calling its initialise event something like this:
frmGraph.UserForm_Initialize

Now my problem is that, I am converting everything to a VB dll,

and
this
particular line is giving me the error object not found. Preceding

it
with
ThisWorkbook e.g.
ThisWorkbook.frmGraph.UserForm_Initialize
still does not solve the problem and gives the error "object does

not
support this property" which is ofcourse expected.

How do I call this sub through my dll....?


--
- Mangesh
------------------------------------------
Office 2003 & Windows XP











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
Addressing in VBA Richard Excel Discussion (Misc queries) 1 January 23rd 08 01:40 AM
Sorksheet addressing (I think) in '97 Adam Kroger Excel Discussion (Misc queries) 0 November 27th 05 10:29 PM
Indirect addressing Ken Rock Excel Programming 2 July 18th 05 01:29 PM
Relative Addressing Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 February 20th 05 04:43 AM
two D addressing? lookup? Thrava Excel Discussion (Misc queries) 5 December 3rd 04 08:19 AM


All times are GMT +1. The time now is 04:19 AM.

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

About Us

"It's about Microsoft Excel"