PC Review


Reply
Thread Tools Rate Thread

Button to open another embedded xls file

 
 
=?Utf-8?B?UGF1bCBEZW5uaXM=?=
Guest
Posts: n/a
 
      5th Oct 2006
I have an excel file which has a botton which when pressed performs an
action. However I need to add another action which is when pressed it checks
L24 and if the number is 1 then it will open up another xls form.

The difficulty is 1.xls will be emailed to people to complete and then 2.xls
will need to be embeded some how in 1.xls.

Hence can you embed one xls in another and then open it from a marco ?

hope this makes sence?
 
Reply With Quote
 
 
 
 
smw226
Guest
Posts: n/a
 
      8th Oct 2006
Hi Paul,

I am making the assumption that you you say "xls form" you actualy mean a
worksheet and not an actual Excel form.
Also, this example is only for one tab but can easilly be adapted to show
multiple tabs if need be.

In the On_click action f the button add the following at the appropriate
point:

Dim cell_L24 As Integer

Range("L24").Select
cell_L24 = ActiveCell.Value

If cell_L24 = 1 Then
Sheets("your_hidden_sheet_name").Visible = True
Else
Sheets("your_hidden_sheet_name").Visible = True
End IfBut the

Thanks

Simon

Paul Dennis wrote:
>I have an excel file which has a botton which when pressed performs an
>action. However I need to add another action which is when pressed it checks
>L24 and if the number is 1 then it will open up another xls form.
>
>The difficulty is 1.xls will be emailed to people to complete and then 2.xls
>will need to be embeded some how in 1.xls.
>
>Hence can you embed one xls in another and then open it from a marco ?
>
>hope this makes sence?


 
Reply With Quote
 
=?Utf-8?B?UGF1bCBEZW5uaXM=?=
Guest
Posts: n/a
 
      10th Oct 2006
is it possible to have the sheets not as hidden but as an actual xls file
within the original so when it is opened it can be saved independantly of the
main xls?

"smw226" wrote:

> Hi Paul,
>
> I am making the assumption that you you say "xls form" you actualy mean a
> worksheet and not an actual Excel form.
> Also, this example is only for one tab but can easilly be adapted to show
> multiple tabs if need be.
>
> In the On_click action f the button add the following at the appropriate
> point:
>
> Dim cell_L24 As Integer
>
> Range("L24").Select
> cell_L24 = ActiveCell.Value
>
> If cell_L24 = 1 Then
> Sheets("your_hidden_sheet_name").Visible = True
> Else
> Sheets("your_hidden_sheet_name").Visible = True
> End IfBut the
>
> Thanks
>
> Simon
>
> Paul Dennis wrote:
> >I have an excel file which has a botton which when pressed performs an
> >action. However I need to add another action which is when pressed it checks
> >L24 and if the number is 1 then it will open up another xls form.
> >
> >The difficulty is 1.xls will be emailed to people to complete and then 2.xls
> >will need to be embeded some how in 1.xls.
> >
> >Hence can you embed one xls in another and then open it from a marco ?
> >
> >hope this makes sence?

>
>

 
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
Can't open an embedded .zip file Cryptochick Microsoft Powerpoint 1 20th Apr 2010 07:13 PM
How to open a pdf file that has been embedded as a resource Shawn Yates Microsoft VB .NET 2 14th Nov 2007 10:38 PM
Can not open embedded Viso file =?Utf-8?B?SnVhbg==?= Microsoft Word Document Management 1 30th May 2007 03:52 PM
i can't open an embedded powerpoint file =?Utf-8?B?Y2hp?= Microsoft Powerpoint 8 12th Dec 2006 04:20 AM
VBA to open .pdf file embedded in XL W/S Dennis Microsoft Excel Misc 0 22nd Jul 2006 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 PM.