How to filter the data in a combobox based on a selection in another combobox infoPath 2010 - infopath2010

I have two comboboxes in an infoPath 2010 form, one is the main office and the other is the sub office. Each combobox has has identifiers for example
Main Office : IE
Sub Office: IE1, IE2
So I want to hide all entries except for those that begin with IE when IE is selected in the Main Office

I suggest use a SharePoint List to store those values then query it in data connections
Get the sub office values in the list using filters when Main Office contains IE.

Related

Team Foundation Add-in - Using VBA to 'Get Work Items'

I'm using the Team Foundation add-in for Excel 2016.
On the 'Team' tab on the ribbon, there is a button called 'Get Work Items'. With this feature, I can manually input IDs and it will pull the record from TFS directly into the worksheet.
To avoid having to do this manually, I would like to use VBA to input a list of IDs into the 'Get Work Items' feature.
Can anyone help me with this?
Thank you
James

Is there any possible way to ignore accents in a worksheet's name when you're trying to index/select a worksheet in Excel VBA?

The problem is that when I had MS Office 2013 I could use letters in Excel worksheets' names like "Ó, Ő, Ű" etc. but I had an OS and software update recently at my company (from Win7 to Win10, and from MS Office 2013 to 2016), and now some character with such diacritical marks has been replaced with letters without these marks like "O, U".
For example I had a worksheet called: Sheet1 (Összeszámolás) in MS Office 2013
Now that worksheet is called: Sheet1 (Osszeszámolás) in MS Office 2016
If I use the lastly mentioned worksheet name when I'm calling a worksheet then the ones who have MS Office 2013 won't be able to operate with the excel (VBA doesn't find the actual sheet).
Indexing with worksheet numbers doesn't work (e.g Sheets(2).Select) because MS Office 2013 indexes differently than version 2016. Sheets(2).Select selects the 2nd worksheet in MSO 2013 but in 2016 it selects the 3rd one..
Am I able to make excel ignore the accents so Sheets("Osszeszamolas") would be able to select either Sheet1 (Összeszámolás) and Sheet1 (Osszeszámolás)
Note: I've tried to look for language options, but there ain't any options that could handle these specific accents..
Go to VBA, and rename the VBA name of the worksheet in the there, and use that name.
So go to VBA,press Ctrl+R, locate the sheet, click once, press F4 if necessary to popup the properties, change the property Name (Not "(Name)" but "Name").
From now on, you can use that name in your VBA-code to refer to that worksheet-object directly. So if the name you give is "ThisIsMyVBANameForThisWorksheet", you can code in VBA with
ThisIsMyVBANameForThisWorksheet.Activate
If this is no option, you can use the default VBA names for the sheets. In English office, these are Sheet1, Sheet2, etc. (If you use multiple languages of Office within your company, that is not an option either.)
So
Sheet1.Activate
If above doesn't work/suffice I also have a bit more robust solution:
Function ReliableWorksheet(x) As Worksheet
Dim W As Worksheet
For Each W In ThisWorkbook.Worksheets
If W.Index = x Then Set ReliableWorksheet = W
Next
End Function
And then use
ReliableWorksheet(1).Activate
This should work on all office versions, in all languages, but I cannot test it other than O2013.

Macro for adding Excel form data in SharePoint list?

I have Excel 2013 worksheet where user will add some data.
Excel worksheet data:
We need to create button on worksheet (Save button) which had macro behind, which saves data in SharePoint list (already created in SP site).
List having same two columns.
I do not have permission on SQL server to add stored procedure or fire query for call from Macro.
Is there any other way? Please suggest.
You can't manipulate a SharePoint list with Excel VBA. You may want to re-think your architecture. I suggest to let the user enter the data into a SharePoint list form instead of an Excel sheet.
You can export the SharePoint list to Excel, which creates a dynamic, refreshable data connection, if you want to use the SharePoint list data for further analysis.

Excel macro properties menu?

Excel 2010 :
1)
Excel Macro contains "Properties,View Code and CommandButton Object menus on right click.
2)
Same Excel Macro does not show "Properties,View Code and CommandButton Object menus on right click.
What is the reason,not showing menus.How to get this properties.I would have tried to changing excel properties.
There are two different kinds of controls possible in an Excel worksheet.
Both can be inserted via developer tab:
Your first one is an ActiveX control.
Your second one is an Form control.
See also: What is the difference between "Form Controls" and "ActiveX Control" in Excel 2010?

Excel 2011 Mac VBA Combobox value

In excel 2011 on the mac, I have a spread sheet with two controls. A combobox and a button. the combo box is named Crops and i want to access the value of that box when clicking the button.
The obvious Crops.Value that would work in windows office does not seem to work and i get an error saying the Crops object is missing.
Is this (simple) task possible with VBA on the Mac?
ok solved it. Active X objects do not work on the mac. You have to use Forms elements and then if you want to access the value of a dropdown this is the VBA code. Hope it helps someone else.
assuming Crops was the combobox, Itm will have the value.
With ActiveSheet.DropDowns("Crops")
Itm = .list(.ListIndex)
End With

Resources