Hi,
My problem is the following:
The function below triggers an "if then function" when i manually change the value in cell D9. What should I do to get it to work with an automatic value change of cell D9 trough a link.
In other words if i where to link cell D9 to cell A1 and change the value of A1 can i still make the function below ...
In Cell A1 i have a description of a computer (HDD, Proccessor, GFX etc) and in cells B1-10 i have a list of proccessors, what i want is an excel UDF that would looke like this in cell C1:
GetProccessor(A1,B1:B10)
I know i need to parse in in VBA with:
Function GetProccessor(Text as Variant, rRange as Range)
Then i am stuck as i am v...
I'm using VS 2008 reporting services to building page that will print barcode labels with some data fetched from the database. The labels are on a standard 8.5x11 sheet with 3 across and 10 down. The rdlc file only has the first row of 3 labels and depending on the data, many sheets can be printed.
Everything works fine except one thin...
Hello,
I am looking for a way to import a datatable from Access into an Excel variable and then run queries through this variable to speed up the process. I am trying to migrate from C# .NET where I read a data table from an access database into memory and then used LINQ to query this dataset. It is MUCH faster than how I have it curr...
assume that I have a html file in which javascript like this
<script type="text/javascript">
var test1 = 1;
var test2 = 2;
var tset3 = 3;
</script>
So, how can I get javascript variables by excel vba and use it in excel vba?
...
I've added some form controls to a collection and can retrieve their properties when I refer to the members by index.
However, when I try to use any properties by referencing members of the collection I see a 'Could not set the ControlSource property. Member not found.' error in the Locals window.
Here is a simplified version of the c...
I have VBA code in an Excel spreadsheet. It is used to set the font and background color of a cell based on the value in that cell. I am doing it in VBA instead of "Conditional Formatting" because I have more than 3 conditions. The code is:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, d As Range, fc As Long, bc As...
hi all,
i want to clarify my initial question for a possible solutions from any savior out there. Say i have 3 excel sheets one for each user for data entry located in separate workbooks to avoid excel share workbook problems. I also have a master sheet in another workbook where i want individual data enter on those sheets precisely shee...
Hi all,
I am trying to enable/disable a combobox based on the value or state of a second combobox in Excel 2007.
I think my code should look something like this:
Sub DropDown266_Change()
If DropDown266.Index = 2 Then
DropDown267.Enabled = False
End If
End Sub
However, I am getting a run time error '424' saying an ob...
Hi everyone....
Consider that i have an excel workbook and an access table not necessarily having a similar structure (i.e. They may not have same number of columns)
When i open the workbook the rows in the excel sheet get populated by the rows in access table (copied from the access table into the excel sheet's particular range of ce...
Hello,
I have more than one Excel Workbooks containing multiple worksheets in each of them.
I would like to have a macro which help me to create (combine the information from) all the worksheets into one pipe [|] delimited [.csv] file.
These sheets should be combined/appended into the [.csv] file, in the same order these worksbooks ap...
heya,
We have an Excel file with a worksheet containing people records.
1. Phone Number Sanitation
One of the fields is a phone number field, which contains phone numbers in the format e.g.:
+XX(Y)ZZZZ-ZZZZ
(where X, Y and Z are integers).
There are also some records which have less digits, e.g.:
+XX(Y)ZZZ-ZZZZ
And others with ...
I am working on a Excel 2007 workbook that will contain a macro to save the current sheet (a template) as
a PDF file (no problem)
a Excel 97-2003 file (problem)
When saving the Excel file a messagebox appears asking about
"Defined names of formulas in this workbook may display different values when they are recalculated...Do you wa...
So a simple version of what I'm trying to do.
Say I know there is an error in cell(1,1), furthermore I know it is either #num!, #ref! or #value!, I want to be able to store the respective error message in a variable, so I can print it to a different sheet.
This is what I tried and it clearly failed.
Sub FindAndPrintErrors
dim Store as...
I need a VB code for the above question.Please help.
...
Say i have an single dimension array (to keep it simple). Is there a simple way to tell what the highest index of an element that was explicitly assigned a value? other than to loop through and count?
I know Ubound finds the highest dimension of the array but that's not what I need. Is there something like Ubound but it only counts popu...
I don't normally use VB, and even less vba for excel, but I'm writing a function inside a macro and seem to not understand even the basics of creating a function
For example
Public Function test() As Integer
return 1
End Function
This gives a compile error.
This is profoundly stupid, but how do I make a function return an intege...
I am running a QTP script where a data is produced dynamically.I am retriving the data during runtime and then I need to paste that data in an excel sheet (in an column).Please suggest how to code it. Thanks for any help.
...
I have a macro that is on a server. I need to be able to run it from different workstations that connect to this server.
Currently I am doing:
Application.Run ("L:\database\lcmsmacro\macro1.xlsm!macro_name")
The error message I am getting is "The macro may not be available in this workbook #1004"
I have already made sure that my se...
Sub Macro1()
'
' Macro1 Macro
'
'
Worksheets("Drop-down").Select
For i = 1 To 10
ActiveSheet.Cells(i, 2).Select
With Selection.Validation
.Delete
' Error in this line
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=Range(Wo...