Link Worksheets in the same Workbook

Rameses

Board Regular
Joined
Mar 3, 2010
Messages
137
Hi all

Please may you assist with this one

I would like to link Sheet 1 to Sheet 2 (Both sheets are in the same workbook)
so that sheet 2 displays the selected data of sheet 1

Also I dont want to show all of the data from sheet 1 ie. I only want to show everything in columns A,D, E & J only(from sheet1) into sheet 2 as A,B,C & D.

I would like to be able to make change in sheet a only but for these changes to be seen immediately in sheet b (master and slave scenario)

many thanks

Rameses
 
AK

please may you take me thought this step by step

maight it be because of the type of excel file? I wonder if i resave it as a macro enabled file

many thanks

Rameses
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi Rameses,

Yes it does need to be saved as a macro enabled file.
I just save as Excel 97-2007 workbook.

Ak
 
Upvote 0
hi AK

absolutly nothing happened

I just cant work out what I have done wrong

is there anything I need to do after ALT+Q

all i have done is just selected onto sheet 2 but it is blank of data!

hmmm im going to get to the bottom of this lol

perhaps macros are disabled in a macro enabled file?...how could I check this?


Rameses
 
Upvote 0
Hi Rameses.

alt-F11
Insert
Module
Then copy in my code
alt-Q

Insert
Shapes
(select your shape)
Click the sheet.
Right click the shape
Assign Macro
Click on CopySheet1
Ok

Now click the button

Ak
 
Upvote 0
Hi Ak

All went well until Assign Macro

It opened up a dialogue box with Macro as the title

but in all the drop down boxesit does not have

'CopySheet1'

I therefore typed it in

once I had the shape and clicked on it a dialogue box opened with the following message

Cannot run the 'macro enabled copy lol.xlsm'!copySheet1'. The macro may not be available in this workbook or all macros my be disabled.


Is there a way I can check to see whether Macros are enabled?

many thanks as always

Rameses
 
Upvote 0
Hi Peter

I also tried that but to no avail

How can i check whether i have macros enabled? (even though it is saved as a macro enabled workbook!!)

many thanks

rameses
 
Upvote 0
Hi Rameses,

Click the Excel icon in the top left corner.
Excel Options (bottom right)
Trust Center
Trust Center Settings
Macro settings
Enable all Macros etc
OK
OK

You will have to do this if you want to use Peter's code or mine.

Ak
 
Upvote 0
Thankyou Ak and Peter

Would you believe that even though the workbook was macro enabled the macros were still disabled

It was on the 2nd option Trust access to the VBA project object model

and

does not work on work computer(as some of the access rights to VBA had been denied) so had to use home computer with open access rights

it works perfectly now

many many thanks for your time and persistence with me

Rameses :biggrin:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,879
Messages
6,181,531
Members
453,054
Latest member
ezzat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top