Select row based on a cell value...
Good morning everyone.. At least those of you where it is morning.. If you don't want to read the boring quick bio about me, skip the next paragraph. I figure since this is my first post, I'll do a...
View ArticleNamed Range - looping through each cell
Dear all, I have a named range TEST (B2:C3 and C5:D6) and I would like in VB loop though each cell in that range recording it's value whether it is a formula or value. I can dot hat with the following...
View ArticleVba to allow user to insert rows/columns but not delete on unprotected sheet
I need to write some vba to allow users to insert new rows/columns but not allow them to delete them. I cannot protect the workbook as all users have the rights to unprotect the workbook. I found the...
View ArticleVBA coding Sctaeer chart - xlMarkerStyle
Hello, A few months back, I was working on a scatter chart and the coding behind it and this forum really helped me. Lately I have been working on this spread sheet, trying to improve it and I am...
View ArticleA Value and a Formula result in the same cell
Dear experts, I want to write a value in cell A1 and immediately when I will press Enter (or click outside the cell) I will receive a result of a formula that uses this value. This is trivial to do...
View ArticlePlease help me to change array id to new array id
Dear All, Please help me: ex: now i have an array id value (1) "abc" (2) "def" (3) "" (4) "" Now, i need the array as: id value (0) "abc" (1) "def" (2) "" (3) "" so, i'm a new bee in VBA. Please, help...
View Article[SOLVED] sort till last row
Hi every body I have a sheet which includ some data and I update it several time it means added some row to my database each time when update my problem is here when I wrote a macro to sort this...
View ArticleVBA - User defined type - Not defined
I have the following error message on my VBA code 'USER DEFINED TYPE NOT DEFINED' and it highlights the following as an error Code: db As Database Full code is Code: Sub UpdateS29consoldatabase() Dim...
View ArticleAny info on How Query Table work internally?
Hello Friends Q1) I want to know how Excel internally handles web query and exactly how it brings about its own internal browser-look alike window (one with that green ticks marker) Q2) Besides...
View ArticleVba to display message when duplicate enteries are in the same row
I am looking to display a message when values are the same within a certain range on my worksheet. For example from A5:S5 if the same value is entered in that row twice I want a message to display...
View Articlecombining excel workbooks into one
im trying to make a macro to combine excel documents, each doc has only 1 worksheet, then i want to make one workbook with 4 sheets? im on mac office 2011 can anyone assist?? thanks
View ArticleNeed help with auto close code
I've been working on this problem for days, I've run out of ideas. Here's the situation. I have several daily workbooks, each is for a resident in the pod I work on. Then there is a pod report...
View ArticleRun-time error '13' Type mismatch
PHP Code: Dim sp As Variant Dim n As Integer Dim i As Integer Dim m As Integer Dim e As Variant Dim f As String Dim pt As String Dim y As Variant Dim p As Integer Dim pvc As PivotCache Dim pvt As...
View ArticleNo value given for one or more required parameters
Hello Excel Forum, I'm trying to retrieve records from a database using the code shown below but get "No value given for one or more required parameters". The code stops at this line: Code: RCD.Open...
View Articleunable to get the sumif property of the worksheet function class -> HELP!!!
hi guys, i have the following code: Code: Sub CalculateStatement() rowend = Sheets("Statement").Cells(Rows.Count, 2).End(xlUp).Row rowendlnsum = Sheets("Loan Summary").Cells(Rows.Count,...
View ArticleMacro saving all sheets in a new file * in different folders * depending on...
Hi everybody, I'm actually using a macro that saves all the sheets from a workbook in new separate files, and save them in a specified folder. ---- Code: Sub Estrazione_Schede() Dim n As Long Dim...
View Article[SOLVED] Sort a selection by Bold first
I have search the whole morning, to find a suitable code. I have info in Columns A & B, only Column A has bold info. I want to sort the 2 columns and put the bold entries first in alphabetical...
View Articlehow to substract 2 dates in vba
hey i want to check if the file was modified in the last 20 seconds. i have this now: Dim fileModDate As String Set fs = CreateObject("Scripting.FileSystemObject") Set f =...
View ArticleMacro to change cell border colors from one color to another
Hi All! I'm facing this problem with my excel that I cannot solve (at least my macro-attempts so far have resulted in no cheerings...). I should change the border color of certain cells to another...
View ArticleLoop between numbers randomly without duplicating " i "
Code: Sub test() For i = 1 To 5 Range("A" & i) = "Test" & i Application.Wait Now + TimeSerial(0, 0, 1) Next i End Sub At the moment this example loops through from lowest to highest "i" I want...
View Article