I need to create three text form fields in MS WORD, where, when you enter the two integers, in these two forms, the third form sums them. Sorry for my bad english. I added an image, so you could understand me more
http://tinypic.com/r/29lcp00/8
You're going to want to create a table:(example)
in the cell to the right of "Sum" click in it then in the tool ribbon above go to Layout(Under table tools) click on formula and enter =SUM(ABOVE) and set number format "0". This will get you the sum of integers in the cells above within that column.
For more detailed instructions:
MS Article "Use a formula in a Word table"
Related
I want to be able to populate a table of user defined length with one column of check boxes and one column of text boxes. For example, the user will enter a number of rows in a text box on a page, click a button, and generate this table. Is this possible using VBA? I have done this in excel but is there something equivalent for Word?
I was hoping you guys could help me figure something out. I am trying to get excel to highlight every other row that contains any information in column A
so it would look like this:
I haven't been able to make any proper headway into this but I was hoping you guys might be able to give me some basic direction.
You can do this without VBA, just use conditional formatting.
Mark the Range, go to Conditional formatting, add a new rule with rule type "Use a formula to determine which cells to format" and enter
=AND($A1<>"",MOD(ROW(),2)=1)
(depending on the regional setting, you might have to exchange the "," with ";" - same syntax as a regular formula)
Then, click the "Format" button and select a fill color.
Convert a range into a table in Excel:
You can make your range of data into a table (including auto-formatting):
Select (highlight) the cells (including the heading if there is one).
Hit Ctrl+T.
Hit Enter.
There are several ways you can then customize your table, such as the options on the ribbon.
More Information:
Office.com : Create or delete an Excel table
Office.com : Overview of Excel tables
Several other tutorials and examples on Google Search.
I have a existing sharepoint list naming (Emp DB) which contains below fields
EmpID:
Emp Name:
Supervisor:
emailID:
Contact:
i want to add items frequently to the above list from excel sheet contains same fields as a columns. VBA coding is required...
Any help on this is very much appreciated....
The datasheet view is not a good way to do this. Either you use VBA and macro from excel or access to update the list. The problem I have is the exact same but with lookup columns to filter the form used to add a new object. When the cut and paste is done from excel the list can't figure out which column value to use and connect it to the value from another list.
I have also heard that you could use web services in SharePoint but i haven't got there yet. Here are some articles that may help you regarding VBA:
https://scottlyerly.wordpress.com/2014/06/26/excel-geeking-using-vba-and-ado-to-change-data-to-sharepoint-lists/
https://flylib.com/books/en/3.464.1.67/1/
https://sharepoint.stackexchange.com/questions/11426/update-list-from-excel-using-vba
Make sure that your list view and excel sheet columns are in the same order. Click the edit link inside "new item or edit this list" at the top of your list page. Now your list is in "datasheet view." Highlight the rows from excel that you want to enter and copy them. On your list page, click the leftmost cell of the empty row at the bottom, and do CTR+V. This should prompt you to "Allow Access" to your clipboard and paste your new entries onto the list.
If you have any trouble see this guide.
How can I automatically fill data into a specific column by referring to a different source-column on the same sheet?
Example:
In the source column are the numbers 1 to 10. How can I convert this into e.g. having "1" displayed as "One" in the second column?
If you just want to spell the number in the first column, then:-
Setup your column headers and format the area as a table (From Ribbon -> "Home" => "Format as Table").
Using the instructions from this Microsoft Support article (https://support.microsoft.com/en-us/kb/213360/en-us), add the code from the article into a VBA Module in the workbook.
Assuming your first data cell is "A2", add this formula to cell "B2":- =SpellNumber(A2). Since it is a table, the formula will be propagated down that entire column automatically, even when adding new rows.
You will need to modify the code from the MS Support article, as it is designed for returning Dollars & Cents phrases.
without know that you really want, You can see convert a numeric value into English words in Excel
PS: joehanna sorry, I'm not saw your answer
This is a problem that has stumped me for a couple of days, and one I've been trying to work on. Unfortunately I very new to working on this stuff, and don't have a lot of resources trying to solve this problem, so if I am unclear or you have a question please post a comment about it.
The problem I am trying to tackle is this:
After getting external data from a SQL Server and having a table in a spreadsheet, say the is called Products, and has columns for productid (column A), productname (column B), supplierid (column C), and categoryname (column D). Is there a way to define a cell, say E1 where you use can use VBA to create a dynamic query. In this dynamic query you would enter some value of categoryname where it would query the table, and give you the results?
It is possible to perform a dynamic query without using any VBA.
Base your table on "From Microsoft Query" (under the "Get External Data" group on the Data tab). Build your query using the Query Wizard, selecting the table columns of interest. On the "Query Wizard - Filter Data" tab, where you would normally say a particular column must have a specific value, instead of the specific value, use just a question mark (for any and all columns that need to be used to filter). When you return your data to Excel, you will be prompted to "Enter Parameter Value" for each ? you used. Just click OK at this stage.
When the Excel "Import Data" dialog appears, click "Properties...". On the Definition tab click the button labelled "Parameters...". For each parameter, choose to "Get the value from the following cell" and to "Refresh automatically when cell value changes". Click the red arrow button (to select a cell) and click in the cell where each parameter will get its value from.
It's a good idea to have a label alongside each cell, and maybe special formatting for the data entry cell. The results table can be on the same worksheet as the parameter entry cells, when you enter a value in the entry cell, a new query will be run and the result will be displayed.
Here is a link that might help.
It goes into using VBA to filter.
I found it a while ago when I looked for something similar, hope it helps.