Get values of dropdown from Excel file - excel

i'm new to VBA and i try to create a word document where the content of the document is shown based on the selection of two combo boxes.
i have an excel file with 3 columns, server, version and content
i want to fill one combo box with all the content of the column server and one with the content of version.
based on the selection underneath the content should be shown.
is there any way to achieve this or maybe do i need to change to a different solution?

Related

How can I create a button on excel that automatically moves me to a specific row?

My excel sheet has a lot of rows where I go over different problems. Is there a way to create a drop down menu at the top of my sheet that can automatically take me to a specific row depending on what problem I want to look at?
I know how to create a drop down menu with all of the problem names, but I don't know how to link each name in the drop down menu to a specific row number to move the screen down.

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

Extract items from pulldown menu in Excel

I want to extract the contents of a pulldown menu in excel. These are the attributes from Amazon offers sellers to list an item.
https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/btg/electronics_browse_tree_guide.xls
The problem is that data fields are grayed out & even after I unlock the spreadsheet I can't seem to get access to the part that stores the lists. Can I extract the contents using any software?
I'm assuming you're referring to the drop down in the Refinements sheet.
These values are being populated from a hidden sheet called DB. Just right click on any of the bottom tabs and select "Unhide."
You can also do this through the VBE (Alt + F11), selecting the sheet and then changing the "Visible" drop down.

Title "not centered" when the report is being run using excel 2007

I'm working on an existing cognos report where a user specifically asked me to make changes. When the user runs the report, they run it in excel. When the user downloads the report to excel the title isn't centered. This threw me off because when viewing my report in Cognos Report Studio, the title is centered. What is the cause of this and is there a fix? They seek this change so they don't have to manually make the changes in excel before putting it to their use.
EDIT:
Report studio:
Excel:
When I run the report in HTML or PDF the title is perfectly in the middle, only excel renders it off.
IBM Cognos has limitations when producing reports in Microsoft Excel format.
One work around for this problem is to use include the report title text in a table cell in the Page header block. Given below are the steps.
Insert a table of 1 column and 1 row (i.e. 1 table cell) in the Page header block.
Add "Text Item" in the table cell.
Give appropriate report title in that text item.
Select the table cell; In the 'Font & Text' properties, specify the horizontal alignment property to be 'Center'.
Run the report in Excel 2007 format.
This also works for Excel 2002 format.
You can find some of the limitations for Excel format here:
Unsupported Excel Formatting
Unsupported IBM Cognos 8 Formatting
Limitations When Producing Reports in Microsoft Excel Format
#MichaelYounani
Instead of having title texts (6 rows) in 2 different table structures, you can move all the 6 rows of title in the same table.
Please refer to the screen shot.
That way, when the report is run in Excel format, you can get all the title rows in one column and aligned to the center.
Take a list object..
unlock the report.
add list header. (note not the page header..)
select the list header and select split cells.
Place a text item in the first list header cell.
Select all the list header cells and select merge cells.
Now, you can format the merge cells with center and bold.
This will ensure the total number or columns and the list header cells are same.
Run the report and export to excel. This method work in any version of cognos.
--Srrinivas.
Go to Page Layout, then next to the Gridlines tab is Headings. Click on the expanding arrow right below that. From within there, go to Header/Footer. Uncheck the boxes that say, "Scale with document" and "Align with page margins". Problem solved.

excel spreadsheet data to web form

I'm looking to place my company's trailer inventory on a few free classified ad sites. Our inventory database (filemaker) can export data into an excel spreadsheet (column A-Make, B-Model, C-Year, etc.) including the URLs of the photos of each trailer.
Our dealer sites allow for bulk uploading through XML and that works great.
My problem is on the smaller free classified ad sites that have a web form that needs filled out (the example I'm using here has text fields and drop-down menus, but other sites have check boxes and radio buttons) then submitted for each individual trailer (about 90 trailers). I'm wondering how I can use the data in my spreadsheet to auto-fill the form with the information in row 1, submit it, re-navigate back to the form and repeat the process with the info in row 2 and so on. I know that I'm going to have to tailor my data and columns to fit each site (match column names to field names and change relevant data to match drop down options, etc.).
**edit Also (although not necessary) it would be nice if it was possible to have my photo URLs entered as well (if at all possible).
I've created a "test" account on http://www.horseclicks.com. Once logged in you have to click on "My Trailers" on the left and then the "add" button
user: excelhelp
pass: excel
Any takers??
This doesn't completely answer your question, but would save you some time entering the forms manually. If you know the names of input tags on the form you want to fill out, you can write a Javascript that will fill out the form for you: i.e., document.getElementById('your_name').value=Name[x]; etc.
In that example, Name would be an array that would contain a list of the names you wanted to put in the input field "your_name". You can easily turn an Excel sheet into a Javascript array by exporting to CSV and cut/paste into your code. Make it so that the value of x increases by 1 each time the script is ran.
Take your whole javascript, and turn it into one line that starts with "javascript:" and place this as a bookmark in your toolbar. Now you can go to the form, hit the your bookmark button and it will fill out the form. Hit submit, go back to the form, hit the button again...

Resources