Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Browsing all 50040 articles
Browse latest View live

Excel VBA Code to make all my Toggle Buttons Red if False and Green if True,...

Is there a code to make all my Toggle Buttons turn “Red” is their value is “False” and “Green” if their value is “True”. Right now I’m having to code every Toggle Button with: Code: Private Sub...

View Article


Get mouse position on single click, use screen coordinates to place an image...

If anyone has ideas about this I would greatly appreciate it. I am looking for a macro or some vba language that I can modify. A user is presented with an image in excel of an aerial view. On top of...

View Article


Excel macro required urgently

hi team, i am new to excel macros, and i would like to learn, what i am trying to achieve is that there is a form that come to me in an excel format, which then gets filled onto a website manually, i...

View Article

[SOLVED] Deleting a Row from a selected cell

I have the following code to delete a Row from cell D4 and everything to its right. Can this code be simplified? Code:     Range("D4").Select     Range(Selection, Selection.End(xlToRight)).Select...

View Article

Countif formula for n number of rows and columns in macros vba

hi , currently i am working n a excel sheet , i need to include an countif formula column after the last column. and the formula should be pasted till the last value in the row. ex: if three columns...

View Article


VBA to Count Duplicate Text Values by comparing data in 4 Columns on a...

I have 26 columns (A to Z) by 70 rows of text data. I want to count how many times a specific term ("text1") occurs in column J but only count it once if the data in columns D, E and G are identical...

View Article

Debug: For,next does not start at specified row

I have the following code that when run starts at row 1 instead of 84. For the life of me I cannot figure out why this is so. Code: Sub modulenter() Dim appWD As Word.Application     Dim Name As String...

View Article

copy format and value of visible cell

Hi all, I think, I am missing something but what? Regards, Nikenis Code: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.ScreenUpdating = False If Intersect(Target,...

View Article


When and where is VBA in Module or Worksheet

I have a rather large workbook with lots of VBA. Is there a rule-of-thumb as to when to insert code inside a worksheet and when not ? Also, what are the advantages of having code inside the worksheet?...

View Article


Macro to subrtract two ranges and compare the result with condition

Hello everyone, I have a file in which it has due date (a2:a25) and paying date (b2:b25). I need a macro to loop through each and every cells. Eg: If b2-a2<30 then in C2 I need to print "No Due" If...

View Article

How to improve speed of VBA code while using Vlookup function

Hi Once again i am glad to come back into the forum which provides lot of help and knowledge. I am trying to use Vlookup function with in VBA code for obtaining data from sheet "SD Consolidation" into...

View Article

Combobox selection unable to cascade values from Access database table

sorry but i need the help badly. i'm trying to cascade values from an access table (db1.mdb) which contains 4 informations. let's call it A, B, C and D. In excel, i made a userform which enables the...

View Article

Image may be NSFW.
Clik here to view.

Vb macros code for sorting:

VB MACROS CODE FOR SORTING: Could you please write MACROS VB code to arrange the given columns like season, TT, WaterSD and avrg so that it takes only the row with the water SD Average . I know my...

View Article


need Google Translate in Excel 2003

hello everyone :) i m need VBA code for Excel 2003 about Google Translate for English to Gujarati or Gujarati to English..... working with Function like "=translate(xx,xx,xx)" thank's in advance :)

View Article

If Statement Help

Hi Everyone, Having trouble with some if statements (not a programmer but learning!) Code: If Range("C31") = "True" & Range("C33") = "False" Then Email_Subject = "Retail" Else If Range("C33") =...

View Article


Macro not working in Excel 2010 but working in Excel 2003

Dear All, Please find below the macro , which is working in Excel 2003 but not working in Excel 2010. Please help me to solve this issue. Dim Foldername As String, to_addressee As String, Cc_addressee...

View Article

[SOLVED] How to get filename of file just opened

Hi guys and gals, I am sure this will be super-easy to answer, but I am blanked out a bit. At a certain point in my VBA code, I'm prompting the user to open a file, which I need to refer to in the rest...

View Article


Image may be NSFW.
Clik here to view.

Code fails with runtime error 91 in some case.

Hello. I have pusseld together a code that matches data between ranges on different workbooks and copy pastes information belonging to sertain ranges from wb2 to wb1. The code works just fine on sheet...

View Article

Displaying date and time format in Listbox

Hi, The code bellow displays in my Listbox, 2 columns with the date and time from a variable range. Code: c = ActiveCell.Column Days = WorksheetFunction.CountA(Sheet20.Range(Sheet20.Cells(6, c),...

View Article

Image may be NSFW.
Clik here to view.

Vb macro code to start from 100 ….

Vb macro code to start from 100 …. In this coding, the average is starting from 200 (TT) and it is proceeding as 300, 400, 500, but I need to start from 100th value.... and also this code is working...

View Article
Browsing all 50040 articles
Browse latest View live