Find and Replace Macro
Hi Guys, I have a macro as per below; Quote: Sub Multi_FindReplace() 'PURPOSE: Find & Replace a list of text/values throughout entire workbook Dim sht As Worksheet Dim fndList As Variant Dim...
View ArticleUsing CHARACTERS on cell with formula
Hi all, I want to use the CHARACTERS in VBA on a cell that has a formula in it. Is that possible? Let's say I use the code below and put in A1 the value of 24 and in A2: ="A"&2*A1&"B" Cell A2...
View ArticleEnable macros not working in shared environment.
Hi There, I have the age old problem where I have a workbook full of macros and Active X controls which used to work and now is not working properly. There are hundreds of people who access a template...
View ArticleAutofilter 2 criteria
Hi guys the below code works a treat, to filter "loaded" before copying all other entries to another sheet, but I need to filter on 2 criteria "loaded" and "Stock Destroyed", I have tried a few...
View ArticleSearching Within Cells and copying to a list
Hi. I have some code, see below which runs well. It has a Dropdown = "ComboBox1" with header columns and a search box "TextBox1" It only searches the beginning of the data in the cell. How could it be...
View ArticlePowerPoint table and charts linked to excel updates by VBA
Dear friends, I have one excel file (Excel Template) and one Presentation file (Presentation Template Macro). The idea is to ---Open Excel file -> update the data -> save -> close it....
View Article[SOLVED] With Statement . Assignment to multiple objects
Hi it´s me again.... I have multiple Combo boxes in a form named like ComBox1a, ComboBox2a, ..., ComBox13a. All of them should display the same options just like in the example below for ComboBox1a :...
View ArticleReturning multiple txt Substrings and using them as search term
Hi Guys, I've attached an example of a document I need some help with. I've tried a ton of different things but keep getting stuck. I'm trying to search for string(s) of text in a cell, extract them...
View Article[SOLVED] Insert Row and Add Text to new cell of Inserted Row
I want to insert a row based on the cell value above and add text to the cell of this newly added row (and loop through all the rows within the range). The code I have will loop through the range and...
View ArticleAllocation of columns to other sheet based on matching headers
Hi everyone, In the attached template I have 3 sheets. All tables have the same headers but in some sheets there are more columns than in others. Basically, I would like to match the headers in the...
View ArticleVBA Loop Through a certain level of subfolder
I found this code from somewhere online (did not test before), now I am testing the code, and it does not work. I use "Step Over" button to test the code line by line, when the code executes the line...
View ArticleLong Formula Getting 1004 error when running VBA
I am trying to insert a formula into a cell as part of a Macro and it keep giving my a 1004 error but I can't figure out why. Any help would be greatly received. code below ActiveCell.FormulaR1C1 = _...
View Articlesave one dimensional array to a range
Can anyone tell me why this particular function doesn't work as a formula on a spreadsheet but it works fine in the immediate window? Public Function test() As String Range("A1:A3").Value =...
View ArticleCombobox1 take just first value
dear All, i have userform contains combobox1, and other comboboxes and textboxes, the combobox1 list equal cities in the range "G7:to last non empty cell") in the sheet name countries, i was able to...
View ArticleReduction of code lines to speed up macro
How would I put the following onto a single line and have the code still work? Range("AH2").Formula = "=IF(ISERROR(INDEX('[Daily MI Master Template.xlsm]MI'!$X$86:$X$13952,MATCH(A2,'[Daily MI Master...
View ArticleReduction of code lines to speed up macro
How would I put the following onto a single line and have the code still work? Range("AH2").Formula = "=IF(ISERROR(INDEX('[Daily MI Master Template.xlsm]MI'!$X$86:$X$13952,MATCH(A2,'[Daily MI Master...
View ArticleIssues with search and viewer
Hi people, im trying to create a vba app in excel. ive managed to get few things done but now i get stuck. link to the file: https://onedrive.live.com/?authkey=%...31F53D01FB8DCE so if you open the...
View ArticleUse Data Validation List To Pull Info From Table
Hey everyone, I'm trying to write a macro, I'm guessing using a For loop to pull data from a table full of information. The data will have a unique identifier of a location # (ie 101,102,103 etc). On...
View ArticleWorksheetFunction SumIfs With Multiple Criteria
Hi, I am using the below formula within a macro to calculate the sum of everything with the code "120012". This formula works absolutely fine. I'm trying to get the below to calculate the total when...
View ArticleVBA - Create 15 minute interval bases on start and enddate input
Goodday, I'm strubbling with an issue to create 15 minute date interval in Excel. I have searched a lot on this form and googled a whole day but I didn't found something that could help me. Problem...
View Article