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

Application.Run - error 1004

Hi there, I am getting a 1004 error here: Code: Application.Run docName & "!UpdateTeam" the docName variable is a string with the name of the external file, in this case "TeamFile.xlsm". I tried to...

View Article


Macro to copy across data based on a cell value

This is going to be a really obvious solution, but I currently have the code working- but it pastes to the next available row. I am trying to get it to paste into cell B2 and always there (so clearing...

View Article


Applying code to specific cells when using worksheet_change?

New here and to VBA, but want code where result only applies to a range of cells . I have the following code: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Value = "" Then...

View Article

combine macros & remove unwanted codes

Hi, i have recoded some macros & modified some old macros. so i want combine bellow all the macros & need to make one short macro(removing unwanted codes). code should combine as per below ,...

View Article

Image may be NSFW.
Clik here to view.

Replacing the second instance of a string within another string.

I am trying to search though a column of data and replace all second instances of a specific string within a larger string. If the second instance isn't there then I don't perform a replacement. What I...

View Article


Consolidating data from multiple workbooks into a separate workbook

Hello, I currently have an issue which I'm struggling with and was wondering what's the best way of tackling this problem. I have multiple workbooks that go by product and month that are continuously...

View Article

Image may be NSFW.
Clik here to view.

count the present day,common entries of last and present day,new entries of...

i want formula to count the entries total count of present day,common entries of last and present day,new entries of present day DAY1 FIRST COMPARE LASTWEEK WITH DAY1 DAY2 DAY1 COMPARE WITH DAY 2 HOW...

View Article

move to new sheet?

So I have the below where a user clicks a button and it takes them to the LOANS sheet. How can I also put the focus or starting point on column AU. I dont need the cursor in any field just the sheet...

View Article


Assigning a macro

Hi all, sorry for this dumb question. I don't know anything about macros and I found an interesting one that I am needing, but I don't know how to use it. This is the link:...

View Article


Formula using vba to find last colrow

have included macro2 to set a target if it belongs to group id . but however the formula seems to work for the whole column even when the data is empty and show false. is there a way to fix this cause...

View Article

Copy Specific Cells Across all worksheets in a Workbook and Paste Into single...

Hi, New to the forum and looking for some help! I have never done macros/VBA before, so I feel over my head as I've just learned VLOOKUP and HLOOKUP, but let me explain what I'm trying to do... I have...

View Article

Find and replace selection of values with one value

Hi all, Currently I've got the following code to: Set the "progproject" named range to "1level" from any of the other 5 possible values Set the a lookup value to look in column U from either V-Z. (I...

View Article

[SOLVED] If statement for number of blank cells > 2 in a table

Hi. Im trying to modify an existing code to implement a secont And statement for the if function. The code now populates a Table with spreadsheet names. and if a sheet is removed it clears blank rows...

View Article


How to activate a SEPARATE instance of excel???

Hello everyone! I am new to the forums (and "somewhat" to VBA as well) so I apologize if this is posted in the wrong area. Essentially I have multiple instances of excel open. I have one instance of...

View Article

Image may be NSFW.
Clik here to view.

Save as with variable file name and directory (simple no!)

Hi All, Have spent a few hours going through this forum again and cannot find my answer (Probably poor search technique)) I have a macro that finishes by copying a sheet (tab) to a new work book. The...

View Article


Image may be NSFW.
Clik here to view.

If contains, then.....

Hello, I just want if Column I contains "EMCC", then B align of it should be EMCC, else CORE. I have attached the file. Attached Files EMCC.xlsx‎ (10.4 KB) Download

View Article

Search sheet by inputbox entry from userform, multiple results

Hi everyone, I was wondering whether anyone could please help me refine this code? I'm probably on the wrong track, as I have no training, but I've managed to cobble together something that works for...

View Article


Image may be NSFW.
Clik here to view.

VBA loop to multiply by negative one

Hi guys, I'm looking for a VBA code that does a type of multiply loop. Take a look at the attached sheet. I've changed the name of the columns b/c the letters relate to one another (A is A's pair, B is...

View Article

Image may be NSFW.
Clik here to view.

Create a macro that dynamically computes two tabs in excel and generates the...

please help with a macro program, please refer the attached excel with 3 tabs. Need to dynamically generate tab 3. tab 1 and 2 can grow dynamically. Tab 1 and 2 are Master data.Tab 3 (Total Effort...

View Article

Image may be NSFW.
Clik here to view.

How to write to multiple cells from a single function call

Currently my UDF WName()outputs a result in each spreadsheet cell that it was called from. Now I am focused on developing the last few lines in order to output a second variable ("MinDist") four cells...

View Article
Browsing all 50049 articles
Browse latest View live