Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Button to open another embedded xls file

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Button to open another embedded xls file

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?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Button to open another embedded xls file

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
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
VBA to open .pdf file embedded in XL W/S Dennis Excel Discussion (Misc queries) 0 July 22nd 06 12:14 AM
Help:Open & Print Embedded snapshot file philhughes Excel Programming 0 March 8th 06 03:23 PM
Creating a button to open a file ktpack[_2_] Excel Programming 2 September 14th 04 12:54 AM
button to open a file kolbydayne[_2_] Excel Programming 2 August 6th 04 03:36 AM
VBA - on a button event, open another closed file, post changes, close file Fio Excel Programming 0 March 1st 04 01:08 PM


All times are GMT +1. The time now is 11:24 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"