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

Name worksheet after merge

I have a code (included below) in which two workbooks are merged into one new workbook with a sheet created for each of the two input sheets. I love this code and I need it to name the new workbook...

View Article


Image may be NSFW.
Clik here to view.

Draw automatic borders using VBA

I have a file , in which every week i will update data. First,i will enter week number, next i will fill up some data on two columns (material no and part id). After that I press update button i need...

View Article


Have cell display text while being empty

I will try to explain what I want the end result to be. I thought it would be through using conditional formatting, but a user suggested me ask the question over here. I want to have my customer name...

View Article

[SOLVED] which value UBound will e returns of the array ?

Dear all, which value UBound will be returns for the following dim array ? Code: dim a(4,5,100) UBound(a,1) = value ? UBound(a,2) = value ? UBound(a,3) = value ? where it was like below Code: dim...

View Article

Image may be NSFW.
Clik here to view.

Replace Cell Value with "same as above" with Conditions Met.

Hi, The attached data set was arranged descending by Column P. My goal is to find out rows with same values as above rows from Column P to Column L and then replace them with "Same As Above". I know...

View Article


Image may be NSFW.
Clik here to view.

Formulas should be filled automatically from specific cell when New data is...

Formulas should be filled automatically from specific cell when New data is entered when data is entered in cell " A9 " even though there is space above e9 should be filled by using the above e1...

View Article

[SOLVED] Error 2042

Can anyone help me with why I'm getting Error 2042 on the second part of my code? I've underlined the syntax that's being shown as an error. When I hover over ce = "No" it tells me it's Error 2042....

View Article

Image may be NSFW.
Clik here to view.

Copy data from pivot table

NEED TO COPY THE YELLOW HIGHLIGHTED VALUES FROM A PIVOT TABLE. ALSO NEED TO APPEND ROW LABELS TO THE DATA. ANY IDEAS?:confused: Thanks. Attached Files Book1.xlsx‎ (9.7 KB)

View Article


Being able to choose wanted worksheet

Hello there! I have a macro programme to do some operations like Vlookup, deleting columns etc. The file to be updated would have a few worksheets in it and every time the worksheets' name and order...

View Article


return all value unless a parameter is enter

Hi all, could someone help with this please.. I am querying a database in Microsoft Query and i have set the parameter to AlmSource. So that if User enter particular Almsource , it will calls up all...

View Article

Image may be NSFW.
Clik here to view.

Converting amounts to -ve

Hi There, I have a workbook with 2 columns, 1st one has elements and the 2nd has amounts. There is another sheet in the same workbook that has elements. I need help in writing a macro that compares...

View Article

Debugging -- Two instances of Error 1004

I keep getting Run-time Error 1004 application-defined or object-defined error for the lines highlighted in green and "run-time error '1004' Excel cannot find the text file to refresh this external...

View Article

VB Script for saving excel file appending weekend's date to the filename

Hi, Need assistance in creating VB script for saving an excel file that appends the weekending date. Say my filename is "Week to date Sales for WE" + weekending date. Where weekending date falls on a...

View Article


Question on ActiveCell.Value And Selection

Hello all, I am familiar of the "Selection = (Variable) -or- (Variable) = Selection" syntax to refer to the contents of the current cell, and of the ActiveCell.Value property which I recently picked...

View Article

Use API to edit registry keys to remove Add-In from Add-Ins List

The thread title says it all. :) Below are the objectives I would like the solution to meet: I want to programmatically remove an Add-In from the Add-Ins list (This is not the same as uninstalling an...

View Article


copy from one workbook on desktop to another open workbook

Hello, I am new to this forum and new to vba for excel. I receive an excel file through outlook. When I open it, a temp1 file is created on my desktop. I want to copy a sheet called "Data" from that...

View Article

If evaluating true when it's not.

Long story short, I have a macro that creates a variable schedule based on calendar day. I have a variable lastDate that is copied from a worksheet, and another, nextDate, that is calculated based on...

View Article


command button

Hi All I have a command button which will pop up two input boxes. First one is to input a text box, Second is for a number. My idea is to fill the rows with the text entered the number of times entered...

View Article

Image may be NSFW.
Clik here to view.

Excel VBA Time Series Graph

Hi, Very new to vba (well been 5 years) so please advise if there is anything missing or confusing. I am trying to create a time series graph (bar graph) which illustrates a timeline of when projects...

View Article

Test for #NUM! in cell

I have some code that I don't want to execute if the value in a particular cell is not calculated due to missing data and has the #NUM! in the cell. How do I test for this condition in VBA? The code...

View Article
Browsing all 50067 articles
Browse latest View live