cancel
Showing results for 
Search instead for 
Did you mean: 

Embed 5 queries in 5 sheets in workbook

Former Member
0 Kudos

Hi All,

I need step by step instructions on embedding different 5 queries in the same workbook but on different sheets (tabs). Like if the workbook is refereshed, then it should refresh all tabs with current data.

I will appreciate and assign full points.

azid123@yahoo.com.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Toja

Run ur 1st query after getting the results save it as new workbook.then each sheet insert remanining queries by selecting tools -> insert query then save it

go to olapfunctions for active cell icon select properties there tick ur check box refresh query when opening work book click on ok for all queris.

then go to tools icon select all queries in workbook remove results click on ok then save it.

assign points if helpful.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Toja,

1. Execute a query, click on Disk Icon and select Save as New Workbook.

2. Insert/Change sheet in the same excel file, click on Tool Icon and select Insert Query. Execute the new query, then select once again the disk icon and select:save existing Workbook.

3. Repeat this for all your queries.

4. Right click on the Query area and select "automatic refresh when opening" option. Do this for all the queries.

Bye

Dinesh

former_member188975
Active Contributor
0 Kudos

Hi Toja,

First execute query one. So it will appear embedded on sheet 1 of a workbook. Goto sheet 2 and place your cursor on the top left cell (important to place the cursor as the query inserts at the cell you have selected)> fromthe menu Tools > Insert Query. Select your second query. Similarly do this on sheet tabs 3, 4 and 5. Then right click on a report cell and choose properties > On the Interaction tab > Refresh Query When opening workbook > Ok for all Queries.

Hope this helps...