Macro between 2 workbooks (one is shared)

dado6612

Well-known Member
Joined
Dec 4, 2009
Messages
591
Hello all, I googled a bit and it seems like macros don't work within shared workbooks. Maybe there is a way around it or something, but this is what I need.
In workbook one would be a code where in inputbox would be entered a number. That number would be searched withing shared workbook and when found copy some data from workbook1 to shared workbook. Possible? Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Okay, maybe if I give more info and concrete question I might get an actual answer.
Have 2 workbooks, in Workbook1 is a Sheet1 with a list of items in some columns.
Workbook2 would have many worksheets on which, when number code is found, some info would be copied.
Workbook2 is shared, not protected.
As:
On a button click in the Workbook1;sheet1 an Userform would show, textbox1 would be for search and textbox2 used to filter out sheets from Workbook2
Something like search "textbox1.value" in workbook2.Sheet"textbox2.value"
After value is found in there it would copy some cells from workbook1 to workbook2
cells to be copied would be in same row as search number in Workbook1, so I guess it can be done with some offset functions.
Hope it makes sense and it's possible for macro to deal with shared workbooks
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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