PC Review


Reply
Thread Tools Rate Thread

Axcessing worksheets in an add-in

 
 
Ed
Guest
Posts: n/a
 
      29th Jul 2007
Back in May I got some help here in separating my VBA code from the
..xls file to be exposed to the user.
It works fine now. When the user opens the .xls file the .xla gets
loaded and the subroutine that installs
a command menu runs.

The question now is how do I maintain some things that are in
worksheets that I chose to leave in
the .xls file? Let me be more specific. I have certain parameters in
a worksheet in the .xla file. These things
are read and used in the macros. I had hoped to have easy access to
them just by clicking on the worksheet
object in the VBA Project tree for the xla file, then changing cells
in the normal Excel manner.

The problem is the VBA editor will only allow be to view and work with
the code, not the object.
I imagine I could edit what's in this worksheet via code, but that
seems awkward.

Is there any way around this?

TIA

Ed



 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      29th Jul 2007
In the VBE set the "IsAddin" property of the xla to False: that will expose
the worksheets and allow you to edit them. Set back to True when done.

Tim


"Ed" <jag_manR__EM*-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Back in May I got some help here in separating my VBA code from the .xls
> file to be exposed to the user.
> It works fine now. When the user opens the .xls file the .xla gets loaded
> and the subroutine that installs
> a command menu runs.
>
> The question now is how do I maintain some things that are in worksheets
> that I chose to leave in
> the .xls file? Let me be more specific. I have certain parameters in a
> worksheet in the .xla file. These things
> are read and used in the macros. I had hoped to have easy access to them
> just by clicking on the worksheet
> object in the VBA Project tree for the xla file, then changing cells in
> the normal Excel manner.
>
> The problem is the VBA editor will only allow be to view and work with the
> code, not the object.
> I imagine I could edit what's in this worksheet via code, but that seems
> awkward.
>
> Is there any way around this?
>
> TIA
>
> Ed
>
>



 
Reply With Quote
 
Ed
Guest
Posts: n/a
 
      30th Jul 2007
Tim,

I can't find a place to do that. If I select the xla in the VBAProject
window and click on VBA Project properties
I get a dialog with two tabs: General and Protection. There is nothing
about IsAddin.

Ed


"Tim Williams" <timjwilliams at gmail dot com> wrote in message
news:(E-Mail Removed)...
> In the VBE set the "IsAddin" property of the xla to False: that will
> expose the worksheets and allow you to edit them. Set back to True
> when done.
>
> Tim
>
>
> "Ed" <jag_manR__EM*-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Back in May I got some help here in separating my VBA code from the
>> .xls file to be exposed to the user.
>> It works fine now. When the user opens the .xls file the .xla gets
>> loaded and the subroutine that installs
>> a command menu runs.
>>
>> The question now is how do I maintain some things that are in
>> worksheets that I chose to leave in
>> the .xls file? Let me be more specific. I have certain parameters
>> in a worksheet in the .xla file. These things
>> are read and used in the macros. I had hoped to have easy access to
>> them just by clicking on the worksheet
>> object in the VBA Project tree for the xla file, then changing
>> cells in the normal Excel manner.
>>
>> The problem is the VBA editor will only allow be to view and work
>> with the code, not the object.
>> I imagine I could edit what's in this worksheet via code, but that
>> seems awkward.
>>
>> Is there any way around this?
>>
>> TIA
>>
>> Ed
>>
>>

>
>
>




 
Reply With Quote
 
Ed
Guest
Posts: n/a
 
      30th Jul 2007
Ok, I found it. Pls disregard last note.

Thanks!

Ed


"Tim Williams" <timjwilliams at gmail dot com> wrote in message
news:(E-Mail Removed)...
> In the VBE set the "IsAddin" property of the xla to False: that will
> expose the worksheets and allow you to edit them. Set back to True
> when done.
>
> Tim
>
>
> "Ed" <jag_manR__EM*-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Back in May I got some help here in separating my VBA code from the
>> .xls file to be exposed to the user.
>> It works fine now. When the user opens the .xls file the .xla gets
>> loaded and the subroutine that installs
>> a command menu runs.
>>
>> The question now is how do I maintain some things that are in
>> worksheets that I chose to leave in
>> the .xls file? Let me be more specific. I have certain parameters
>> in a worksheet in the .xla file. These things
>> are read and used in the macros. I had hoped to have easy access to
>> them just by clicking on the worksheet
>> object in the VBA Project tree for the xla file, then changing
>> cells in the normal Excel manner.
>>
>> The problem is the VBA editor will only allow be to view and work
>> with the code, not the object.
>> I imagine I could edit what's in this worksheet via code, but that
>> seems awkward.
>>
>> Is there any way around this?
>>
>> TIA
>>
>> Ed
>>
>>

>
>
>




 
Reply With Quote
 
Ed
Guest
Posts: n/a
 
      31st Jul 2007
Thanks, Tim. All is well now.

Ed




"Tim Williams" <timjwilliams at gmail dot com> wrote in message
news:(E-Mail Removed)...
> In the VBE set the "IsAddin" property of the xla to False: that will
> expose the worksheets and allow you to edit them. Set back to True
> when done.
>
> Tim
>




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
axcessing e mail Susana Microsoft Outlook Installation 1 28th Dec 2008 10:47 AM
How use info in Excel shared worksheets to create new worksheets =?Utf-8?B?ZGtj?= Microsoft Excel Worksheet Functions 0 28th Jun 2007 08:36 PM
Copy data from multiple worksheets to worksheets in a number of other spreadsheets SteveH Microsoft Excel Discussion 5 6th Nov 2006 06:59 PM
VBA / Macro for creating new worksheets and new columns from existing worksheets webby2006 Microsoft Excel Programming 3 25th Jul 2006 03:38 PM
Worksheets are referenced in expressions, how make the worksheets visible? Excel 2000 L Mehl Microsoft Excel Misc 2 27th Jul 2004 07:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 PM.