VBA changing external Workbook to Read Only
I have a primary workbook with multiple worksheets, code as below for sheet 1 What I want to in this primary code is to execute the first piece of code ONLY ONCE based on the value of cell P2 P2 is...
View ArticleNeed to move to a calculated row on a sheet
I have a large sheet that contains banking information. I want to locate the Row of a certain invoice. Example: Invoices are listed in Column D Cell D738 contains invoice number 54776 Invoices are not...
View ArticleMacro to sort data from rows to columns
I would like to sort data from columns to rows. I am having difficulty because the data in the column may not be the same for every sample. I posted a sample of what I would like below. Hopefully the...
View ArticleAuto-import Text Files Using Single Cell Value.
Hello, I wonder if this can be done. I have a list of the csv files containing price data: EURUSD10080.CSV EURUSD1440.CSV EURUSD240.CSV EURUSD60.CSV USDJPY10080.CSV USDJPY1440.CSV USDJPY240.CSV...
View ArticleExcel calculating based on new/unique row entry
Hello, Say I have this data set (very small representation of what i really have) 1 2 1 2.5 1 4 1 5 2 7 2 8 3 5 3 6 3 7 3 8 I need to make excel recognize that whenever there is a new entry, say new...
View Articleremove duplicate values from array
Is there a built in function to remove duplicate values from an array? The array would contain nurmeric values. Can anhyone provide an example?
View Article[SOLVED] concatinate cells and remove duplicates
I have a large spreadsheet that I need to be able to consolidate on a regular basis. What I need is to remove duplicates based on column A, B and E (If A, B and E are = then it is a unique record)....
View ArticleIf Statement that need a value and color to match before the then.
I need to have a if statement run a macro only once. based on Value of "A3" = "6" and color of "A3" = 0. or any color i want, then run Macro only once. Then change the color so i know it ran. I will...
View ArticleSelect cells by colorindex
Hello all, I'd like to write a macro that selects all cells with a certain background. The color I'm looking for is (255,217,102). I want to select all cells in the sheet with this background color,...
View Articlehow do I end this loop?
This loop returns "method open of object workbooks failed" when it should end: Code: StrPath = "C:\Documents and Settings\" & Environ("username") & "\Desktop\field reports\" StrFile =...
View ArticleCompare ID's and find closest match for each section
I am trying to build a program to compare one main ID to a list and find the closest match overall. If the main ID is 3:16:376:000:045 and I have a list of similar format ID's I want to compare each...
View Article[SOLVED] String variable gets converted to lowercase
ok this is weird. I have a line in my code which does : Code: init_param = Sheets("Parameter_DB").Cells(f, icol).Value the actual value in this cell is "TRUE", but the value returned into init_param is...
View ArticleUnable to get the PivotFields property error
Hi there! I could really use some help figuring this out.... I have a date selector linked to a few reference cells and when I change the date I get the following error: 'unable to get the pivotfields...
View ArticleVBA Code for only if cell is blank
Hello, I'm looking for the a VBA code to allow me to add my formula only if the cells in the range are blank. I'm trying to have different people provide score / rate different questions. The current...
View ArticleMacro to copy sheets several times
Hi... i got this macro that copies the active sheet the amount of times introduced in the box: Code: Sub Copysheet() Dim i As Integer Dim p As Integer On Error GoTo out i = InputBox("How...
View ArticleFormat Percentage to 1 Decimal Place
Hi all, I am using the following line of code to format a value to 1 decimal place: Code: sh2.Cells(rw1, cZ).Value = Format(Val(sh2.Cells(rw1, cR)) / Val(sh2.Cells(rw1, cJ)), "##0.0%") but it is still...
View ArticleHow to use Solver with vba for required results
I want to use solver for getting folllowing results I want to generate a list of id nos say 3-4 any id nos which is having total width is the ht of that equipment from master criteria- eq prog no age...
View Articleuse dropdown and show another item automatically
Hi all, i have problem hope master here able to help me, let say have database consist of 2 columns and i create dropdown menu and refer to the first column in that database, and when i choose one of...
View ArticleSmall editing of vba - a table of contents since the second row
I ask for help with: the macro in the sheet TOC creates a table of contents. As it is possible to correct a macro that the table of contents was created with from second row, ignoring the first row...
View ArticleCreate an Object from string and variable
Hi everyone, I have many textboxes on a Form named (tbx1, tbx2, tbx3, ect..). I am using a loop to cut down on code as I have 120 textboxes. How do I create an object variable using the string "tbx"...
View Article