I am trying to construct an Excel sheet that is able to automatically read and summarize key work information from several OneNote files using VBA.
Currently I am trying to check for a string ('Complete') from a table within a OneNote page with a project number title. If the VBA program detects this string, it will input the same string into a table of all project numbers within the Excel sheet. The program is meant to be as autonomous as possible, so the less user interaction the better.
I have searched for any indication this is even possible, but have found nothing. It seems it is possible to log data from Excel into OneNote, but I have never seen any indication that the opposite is true.
Any help or insight to if this is even possible would be greatly appreciated!
Related
i am trying to have VBA open up a specific word document (this document is protected but has boxes where you are able to edit text). i will then need to fill out said word documents editable areas with variables in the excel document. i have no idea where to start with this code and was posting to see if this is possible and how i could do it.
Additional note. Would it be easier to have vba create a whole new word document in the code so it can just add in all the text?
Since there isn't any code. I'm not sure what stage you're at in this but, from how I read your question you have two ways to do this. Either have your vba code in the word document that opens an Excel file to read cells or have the excel document create a word document with information already filled out. I would recommend using Word to read Excel.
This Question has information about setting fill-able values in Word. There are also a lot of resources out there to find out how to get cell values and open excel documents using VBA.
All this being said. I would say you should probably look for alternatives to all of this. Such as powerapps connecting to an excel file or change your excel file to a SQLExpress database to use that in finding data. The reason I recommend this is because it's much more scalable.
I recently created an automated Excel utility (using Microsoft Office 2019), in which I've extensively used data validations, VBA code, named ranges and formatting. It was working well until one day I received an Excel prompt message that read:
When I click on Yes, it gives me another pop-up where it says it recovered the file, and also gives me a link to the error log XML file. I click on it and open the .xml file using my default browser, and it shows the following details:
Looks like it is removing data validations from a particular sheet, and I realize that is true when I navigate to that sheet in the UI. To work around this unwarranted and repeated data-validation removal that Excel application is enforcing, I created a macro code that will re-instate all these data validations as required. The real problem arises when this Excel file is opened on a different computer with Microsoft Office 365. Looks like it is removing not just data-validations but also other components like named ranges and buttons. There could be other things that it might be removing, which I am unaware of at the moment. So the macro created to re-instate the data-validations is no longer useful.
Why does this problem arise? And why is different version of Excel behaving differently? How do I solve this? Appreciate your kind help. Thank you!
As rightly suggested by Ron Rosenfeld and e_conomics, the issue was with the data validation lists, whose sources were strings of comma separated values that were going beyond 255 characters. Apparently, that is a limitation with Excel.
When I replaced the sources of data validation lists (string of comma separated values) with the ranges containing the corresponding values, the problem resolved itself. The repair dialogue never appeared again.
So I have never used Excel macros before, and am not experienced in this, but have a (very) rough idea of how things work. I have tried looking up solutions but too inexperienced to convert them to my situation.
I have to import data from many excel files into one main database, and have this going at the click of a button, as there are new files being generated daily.
I can set up the data files to have the values in a consistent format on the first sheet of the file, as a start. From there I am not sure of the coding I need to use to get the data imported to the database file and append it to the bottom of a list.
Any help would be greatly appreciated.
By "one main database" are you referring to an actual database (e.g. SQL Server) or an Excel file. If an excel file, I'd use PowerQuery for this. It's built into Excel 2016, available as a free add-in for Excel 2010/2013, and designed so that non-coders can do incredible data cleaning and prep work from a fairly easy-to-use UI built right into Excel. Plenty of tutorials on the web and youtube, as well as great books such as M is for Data Monkeys by Ken Puls.
I have a heavily formulated workbook which will be used by staff members who will paste in potentially confidential client information. The workbook then comes up with graphics and data to summarize the imputed information
In an ideal world, the people using the program will be able to Save specific sheets as a PDF and would be able to close the program without saving changes to the worksheet but Excel always demands to save the template first, THEN will allow PDFs. This is obviously a problem as if a person uses it, paste's in a client's information and saves the result as a PDF then whoever next opens the Excel workbook will have that previous client's information showing.
SO. I either need a way to tell Excel to not require compulsory saving to allow PDF conversion or another option which will result in the same thing.
I should also note that the workbook has to allow users to paste in information so I don't imagine a Read Only will help :/
I have also attempted using a Macro-Enabled Template which still has the same problem
I imagine there's a ridiculously simple solution to this.
Thanks in advance
Here I am trying to use Excel Rest Service to get some data from SharePoint.
Excel file Name: UserData.xlsx
This excel have two workbook
Work Data
User Salary%
I am able to get work data by using below query
.../sites/portal/_vti_bin/excelrest.aspx/Reports/UserData.xlsx/model/Ranges('''Work Data''!A24|M24')?$format=atom
So it means my URL creation logic is correct and hence I am able to get data in my C# program.
However I am not able to get data for second Workbook with below URL
.../sites/portal/_vti_bin/excelrest.aspx/Reports/UserData.xlsx/model/Ranges(**'''User Salary%**''!A24|M24')?$format=atom
I couldn't figure out why I am able to access the first workbook, but not my second; although, the URL looks same.
One reason may be that second workbook contains % (User Salary%), which might cause a problem, but I cannot rename workbook since it is created by different department.
Any help will be appreciated.
Thanks in advance.
I was facing the same issue while reading the values from Excel Sheet "Risk Matrix". It is Space " " which is creating issue in Excel REST.
XYZ.xlsx/model/Ranges('Risk matrix!K15:L15')?$format=json
The thing worked for me is to rename the Excel Sheet name:
XYZ.xlsx/model/Ranges('Riskmatrix!K15:L15')?$format=json
I tried to search other approach but due to time constraint I had to do the above work around.