Similar Threads:
1.return array value using excel automation function
I have three values that I need to return from an excel automation
function written in C#. I am successful reutrning single values of type
string, double, int, ... from a COM automation function. But I do not
know how to return more than one value.
For example, I would like to be able to write a function such as
[First, Middle, Last] = getName( socialSecurityNumber )
where I have an automation function, getName, that takes a social
security number and returns the three parts of a person's name.
Thanks,
Phil
2.Update a field using variables for the Field name and value
'Both the Fieldname(Array position= KPIParticulars(x, 9))
and the value(Array Position =KPIParticulars(x, 8)) I want
to assign it are in an array called KPIParticulars()
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
rst.Open TblNm, CurrentProject.Connection, adOpenStatic,
adLockOptimistic
With rst
.AddNew
!Date = DT
!KPIParticulars(x, 9) = KPIParticulars(x, 8)
'****here is my problem I tried a couple of
'****variations to no avail????
.Update
End With
rst.Update
rst.Close
3.how to get selected field values into an array
Hi Everybody,
I have a database from where I want to extract some data matching the
requirement using SQL statement into an array.
To illustrate let the required field be A, B, and C.
The SQL statment be of sometype e.g.
sql= select A and B and C from "data.dat"
After placing the pointer at the top of the database file, can we
write
getdata=getrows()
to extract the required fields A, B and C?
Pl. help.
thanks
4.Validating checkbox values in MS Word
I have a form where I have multiple Yes/No checkboxes next to
questions. The Yes/No checkboxes reside in a table and each checkbox
is in its own table cell.
What I want to do is not allow the user to check both checkboxes for
one question.
Can anyone help with what the code would look like?
Thanks so much!
5.Problem with validating checkbox values
I have a form where I have multiple Yes/No checkboxes next to
questions. The Yes/No checkboxes reside in a table and each checkbox
is in its own table cell.
What I want to do is not allow the user to check both checkboxes for
one question. I would like to do this in vba code. Here is what I have
so far. The issue is that if the user tabs between Yes/No fields it
checks the new field and unchecks the previous field.
Sub MakeCheckBoxesExclusive()
Dim oField As FormField
RowNum = Selection.Information(wdEndOfRangeRowNumber)
For Each oField In Selection.Tables(1).Rows(RowNum).Range.FormFields
oField.CheckBox.Value = False
Next oField
Selection.FormFields(1).CheckBox.Value = True
End Sub
6. trying to populate a combobox using values stored in an array
7. Using VBA - create array - parse values - find differences
8. using VB to read in a column of values of varying length into an array