I have multiples excel workbooks that will be stored in a share drive and each of them will be opened from different PCs on the same time.
ie:
wb1 open from PC1.
wb2 open from PC2.
wb3 open from PC3.
...
Users will update value in cell A1 for each workbook from different PCs. And there will be a main workbook which store the value from each workbooks.
After users updated the value, I want to create a "send" button on each excel workbook to send the value to the main workbook and the main workbook will display the value from different workbooks once user click on the "send" button.
Also, I want to have a "revise" button at the main workbook. When the button is clicked, the values in cell A1 will be cleared and cell A2 will show "Please Revise" for all workbooks.
Is this possible? As all the workbooks are opened at the same time from different PC.
As I understand it, what you are asking for is not possible with current Office editions. At my previous job we had Excel files on a shared drive that were accessed everyday by multiple computers/users. One user cannot make edits to an Excel file while it is in use by another user.
If you want multiple users to be able to make edits to a live document at the same time, you might try Google sheets instead. They have an application very similar to Excel that will probably support what you are trying to do.
Related
I'm fairly new to VBA. I'm trying to create a user form where the user can select another workbook as read only and copy some of the data to the current workbook. I don't want the other workbook to open.
I found this https://www.encodedna.com/excel/copy-data-from-closed-excel-workbook-without-opening.htm but the excel document is hard coded. Is it possible to select a workbook dynamically, through a file dialog without that workbook popping up?
Thank you
Basically It is kind of Order Management System which will have list of all orders. What I need is all the subscribers should get a email for active orders on regular basis but for this excel sheet should be opened once in a day. Can this thing work without even opening excel sheet. Is there any way I can implement this?
When you open an Excel spreadsheet it will open one of the worksheets.
You can write some VBA in there to execute when the workbook is opened.
Option Explicit
Dim Autorun App as Application
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
Do your stuff here
End Sub
The code in the middle should set an event on a timer (for when to send the emails) and then have a separate routine to send the emails.
You can also set your computer to open the excel spreadsheet automatically when you turn it on. Then there is nothing to forget.
I previously created a VBA program that launched the form from a command button. Sheet 1 was the command button and Sheet 2 was the data that the program referenced. I want to put the data into a separate workbook so that I can put it in a shared drive that can be run on other machines, as well as giving me the option to update the data in the workbook (all separate from the original program). I also think this would make the program faster and much more lightweight, so it doesn't have to open up all the data in Sheet 2 along with it. How could I open the data workbook in the background and be able to reference it in my code?
I need to write a macro that can either pull a specific worksheet from every workbook in a folder without opening them (preferable if possible due to the size of these workbooks) or open each workbook one at a time and copy the worksheet.
Every post on this topic I have been able to find, the path has been static and is specified in the macro, but for the purposes of this macro there will be two different paths that this will need to work for, and those will change every week.
Can someone show me how to code the macro so that it asks for the path?
Is it possible to pull a worksheet from a workbook without opening the workbook?
Thanks,
Aaron
You can use Application.FileDialog(msoFileDialogFolderPicker) to prompt for the path.
Stated simply my question is as follows Is it possible for a button on a worksheet in a normal excel workbook (.xlsx not .xlsm) to trigger a macro in another file specifically an installed excel add in (.xlam).
Here is some background on why I want to achieve this. I have a workbook that many users need to be able to view but only some need to be able to update by filling in a form on another sheet and calling a macro in an add in. The worksheet should not contain any macros to avoid security warnings when opened by normal users. I can do this by having a ribbon button in the add in that the user clicks which will then check that the correct workbook is open and that the form is filled in etc. before executing the update code. However the interface would be nicer if the button instead of appearing on the ribbon was on the worksheet just below the form. Therefore my question is it possible to trigger an external macro from a button click in a non macro enabled workbook.
Yes, you can assign an external macro (which should be .xlsm file) to a non-macro-enabled workbook (.xlsx) button. My xlsm macro resides in the same directory as the xlsx workbook for simplicity. (Note: I am using Excel 2010)
Firstly, you must open your xlsm macro in the same instance of Excel window (i.e. do not open a new instance of Excel) so that your xlsx workbook will be able to see/access it.
Right-click on your xlsx workbook button and select "Assign Macro..."
Make sure you select Macros in: All Open Workbooks
All macros in open workbooks will be shown (this is why it is important to do step 1).
Select the desired macro from the list then click OK.
I don't see how you can execute a macro from a control in a non-macro-enabled workbook.