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

I want A VB code for creating Pivots and simple bar Graphs

I do not want to refresh a Pivot each time the source data changes.I want a VB code in place to Create the Pivot. Also I want A vb code to create A bar Graph

View Article


Detecting a user input box cancel

Hi, I cannot get this code to work if the user cancels hits the cross or enters nothing. Code: Sub Reset()  Dim newyr As Date  Dim Tmpl As Worksheet     Set Tmpl = ThisWorkbook.Sheets("Template")...

View Article


Image may be NSFW.
Clik here to view.

VBA Form - Allocate volume in a period to a new worksheet.

Hi, I have some difficulties to create a VBA form that will allocate/devide a volume in the number of months for an wanted period. The result sheet should present the volume pr row pr...

View Article

Getting compile errors please help!

Hi I'm completely new to VB and am getting compile errors I basically want to check through a range of rows and if column C contains a value above 0 then to copy cells B M and N onto another sheet into...

View Article

Image may be NSFW.
Clik here to view.

run excel vba code via different macro

Sir, If i want to run a macro8 of Format AY 12-13.xls file from different workbook i write code Application.Run "'Format AY 12-13.xls'!Macro8" So it runs macro 8. Like this if i want to run some vba...

View Article


Image may be NSFW.
Clik here to view.

Change numbers to formules for selected cells

Hi, I have a report with lot of numbers. Some numbers will be changed to formule by adding multiplier, multiplier + a number from another cell. Examples: in cell C5, change "350" to "=350*2". in cell...

View Article

Run unsigned add-ins in excel 2010

Hello, New here, the name is Rob and I've from Australia. I'm sure this question has been asked before but I couldn't find it. I want to run unsigned add-ins in excel 2010. I have been to the trust...

View Article

multi variable equation

Trying to run a sensitivity with 4 variables each with a range of values its is simple product of x*y*z*d = revenue but I would like to have a range with each variable hours of operation = x (8 - 18...

View Article


How to use FileDialog in Excel VBA?

Hi, In Excel VBA, I use the following code to show the FileDialog box and select a new folder: Private Sub CommandButton1_Click() With Application.FileDialog(msoFileDialogFolderPicker) .InitialFileName...

View Article


Image may be NSFW.
Clik here to view.

Optimisation of production based on price of energy

Hi, can you take a look at the attachment? My question is. What is the optimal order to produce these products, so that ENERGY COST TOTAL is minimal? I assume we have 120 possibilities in this case....

View Article

If Error with Vlook Up using VBA

Hey!! I have a part of a macro mentioned below - Code: ActiveCell.Formula = "=VLOOKUP(A" & i & ",Sheet1!A2:B10,2,0)" I just want to add an iferror before the Vlook up so the same line will look...

View Article

VBA to Loop through list of sheets and apply macro

Please help, I've been stuck on this for hours. I have one workbook that is saved as macrobook.xlsm in which column A has a list of worksheet names that I would like to apply a macro to. The worksheets...

View Article

Manual Entry of Row and Column Array Values

In MatLab, I could fill an array using the following syntax My_Array = [1, 2, 3; 4, 5, 6; 7, 8, 9; 8, 7, 6] which would result the 4 x 3 matrix as follows. |1 2 3| |4 5 6| |7 8 9| |8 7 6| I cannot seem...

View Article


Data Validation using VBA

I have a Workbook and in Sheet 1 I want data Validation in Column A & B (From Rows 6 to Last Row) using VBA I want a Validation in such a way that in Column A the user should be able to input only...

View Article

Image may be NSFW.
Clik here to view.

macro to create copy of template based on two criteria and paste data from...

I have a master sheet which contains several line items and 4 deal templates. I want a macro to loop therough each line item in master sheet and create copy of 1 of the 4 templates depending upon 2...

View Article


Difficulty using ubound command

This is all for a save close button for a workbook 2010 loaded on sharepoint 2010. I have asked for help on this a couple time and have gotten this far, I am almost there. I am having trouble with my...

View Article

Userform: insert multiple lines by text value

Dear all, I am stuck with one function in Userform... I have two Combolist which help me to define the period. Eg. From Jan-13 To Jul-13 and then there is a "Add" function... My ideal function is by...

View Article


Macro to delete macro button issues

Hi Guys I have a situation where I have a code which copies a sheet and renames it a cell value. But these sheets which have been copied over also have the macro button on which I want deleted. So I...

View Article

Copy Data from one worksheet to a main workbook

Hi Guys, Great work with the website. Just need some help with a small spread sheet I'm doing. File A is populated - it has a maximum of 10 columns, however the rows can change from 2 to 2000. I'm...

View Article

Looping Through All the Workbooks in a Folder

I have a Folder with many workbooks. All workbooks have multiple Sheets. I want the Macro to open all workbooks inside that folder and copy all the data in every sheet from every workbook and Paste it...

View Article
Browsing all 50054 articles
Browse latest View live