Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA and loading forms (Excel 2002)

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default VBA and loading forms (Excel 2002)

I wonder what the setting is for Automation security on your system. I've
not used 2002 with VBA, so don't know if it's similar to 2003/2007 or not.

HTH,
Barb Reinhardt

"Andy C" wrote:

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA and loading forms (Excel 2002)

How would I find that out? Macro security is set to low btw.

"Barb Reinhardt" wrote:

I wonder what the setting is for Automation security on your system. I've
not used 2002 with VBA, so don't know if it's similar to 2003/2007 or not.

HTH,
Barb Reinhardt

"Andy C" wrote:

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default VBA and loading forms (Excel 2002)

That's what I was asking. You are opening the file as read only. What
happens if you don't do that?

"Andy C" wrote:

How would I find that out? Macro security is set to low btw.

"Barb Reinhardt" wrote:

I wonder what the setting is for Automation security on your system. I've
not used 2002 with VBA, so don't know if it's similar to 2003/2007 or not.

HTH,
Barb Reinhardt

"Andy C" wrote:

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VBA and loading forms (Excel 2002)

There's no difference. There's still no buttons on the opened worksheet and
the form doesn't appear in the solution explorer.

"Barb Reinhardt" wrote:

That's what I was asking. You are opening the file as read only. What
happens if you don't do that?

"Andy C" wrote:

How would I find that out? Macro security is set to low btw.

"Barb Reinhardt" wrote:

I wonder what the setting is for Automation security on your system. I've
not used 2002 with VBA, so don't know if it's similar to 2003/2007 or not.

HTH,
Barb Reinhardt

"Andy C" wrote:

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default VBA and loading forms (Excel 2002)

And everythign works fine if you open it on it's own?

"Andy C" wrote:

There's no difference. There's still no buttons on the opened worksheet and
the form doesn't appear in the solution explorer.

"Barb Reinhardt" wrote:

That's what I was asking. You are opening the file as read only. What
happens if you don't do that?

"Andy C" wrote:

How would I find that out? Macro security is set to low btw.

"Barb Reinhardt" wrote:

I wonder what the setting is for Automation security on your system. I've
not used 2002 with VBA, so don't know if it's similar to 2003/2007 or not.

HTH,
Barb Reinhardt

"Andy C" wrote:

Hi,

This has probably been asked before but I can't find it.

When I load a workbook in VBA using:

Dim wb As Workbook
Dim ws As Worksheet

Set wb= Workbooks.Open(filename, False, False)
Set ws= wb.Sheets(1)

None of the command buttons on the called worksheet or UserForms in the
called workbook are available to me. I can't access them and they don't
appear in the Project Explorer. How can I get round this and be able to
access the forms and command buttons in the called workbook when loaded?

Thanks,

Andy C

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
Parameters in Forms Buttons - not working in Excel 2002 Greg Lovern Excel Programming 0 February 25th 08 06:33 PM
Excel 2002 Not Loading WhiteX Excel Discussion (Misc queries) 2 March 2nd 07 02:09 PM
Loading two forms JR Excel Programming 2 April 21st 06 07:41 PM
Data Forms in Excel 2002 kez Setting up and Configuration of Excel 1 December 8th 04 10:17 PM
MDI Forms in Excel 2002 XP Karsten Excel Programming 0 August 20th 03 10:04 PM


All times are GMT +1. The time now is 03:08 PM.

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"