activating a different workbook without knowing its name.

motybetesh

New Member
Joined
Jun 4, 2002
Messages
19
Hello there
1. I have a file where I record a list of information.
2. that information is copied, by a macro, from an XML file such as 6550010000305931007020640-procNfe.xml
3. first I change it to .xls and open it, (or even without changing it) it opens as pasta1, pasta2.....

I´m trying to execute the macro that is on the permanent workbook. (I have for that macro a button on the excel menu) but clicking on it, gives a massage that the macro is not available on the that workbook (pasta1, pasta2.... name keep changing)

I would like to know how do I get the macro to start without its workbook being active ?
Or if I start with it, how do I tell excel to look for the other files ?

Thanks
Moty
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Top Menu - customize - More commands - on the list of commands choose Macros - and then choose the macro I need.

It worked on Personal.xlsx, what would be the command to execute a macro 4.0 ? (that is a part that I need to do afterwords )
 
Last edited:
Upvote 0
It´s the little arrow on the left of the menu where the save, undo, redo buttons are. can I attached screen prints?
 
Upvote 0
oops, Sorry, my excel is 2007.
what would be the command to execute a macro 4.0 and how do I address the macro 4.0 that is on the workbook that records the data?
 
Upvote 0
Thanks, I recorded the procedure I needed in a macro in VBA . and now it works. thanks for your patience .
If you want me to send you screen prints of the procedure to add a button for the macro send me your Email
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

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