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

Close/Reopen Excel using Taskkill - possible?

Hi there, I have the following code that needs to execute. Basically, every once in a while, our terminal program encounters an error that makes it so Excel and it can't talk to each other. The only...

View Article


Selecting Range by using 2 Defined Rows

Hello Everyone, I apologize if this question already has a thread but I've been searching and haven't found anything that would help me. I'm looking to select (and copy) a range using 2 defined rows....

View Article


Macro to download a file

Hello Everyone I am trying to create a macro that will download a pdf file from URL specified in a cell. Below is my code. Right now after I run the macro the file is created, but obviously it does...

View Article

How to retrieve value of the bookmarks from the word document

I have written a code to delete the sentence range which has its bookmark value as empty. Code: Sub deletebookmarks() Dim rng As Range For Each bmkname In Wrd.ActiveDocument.Bookmarks()         If...

View Article

[SOLVED] VBA - Method of Range failed using a variable for a table name

I'm trying to refernce the [completed] column in a table. The table is a variable based on a value in a vlookup. When I hardcode the table name into the range reference, the code works, however when I...

View Article


[SOLVED] Copy Destination Syntax Error

Hello everyone, I'm trying to run a simple cut and paste but the below code contains a syntax error. Code: Sub FilterSO()      Range("A7:A377").Cut Destination:=Range("A8")         With...

View Article

Loop to Delete worksheets stops after deleting one sheet...

Sub DeleteSheetsPlease() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets Application.StatusBar = "checking " & ws.Name If ws.Name <> "Parameters" And ws.Name <> "About" Then...

View Article

Image may be NSFW.
Clik here to view.

[SOLVED] Copy and Paste Range of Cells based on # of cell values in Column A

Hey all, Please see attached sample worksheet. Column A will be generated by the user manually. I'm looking for a way in VBA to have A1:D20 in Sheet2 copied and pasted in the "Bank Reconciliation"...

View Article


automate this process

I have a control sheet that is checked against several data sheets that are attached in the same workbook. There can be several lines of data, over 1000. I am checking monthly so this total will very...

View Article


Random Word Generator from Dictionary

Hey I am new to this site but I was wondering if it is possible to create a macro that will generate 2 words from the dictionary. The first word needs to start with the letter B and the second word...

View Article

Image may be NSFW.
Clik here to view.

Extracting message body in excel

Hi All, I have messages in my outlook and I need to extract all my body of the messages in to an excel. Is there any formula or function to do so. I tried to import the messages from outlook. But it...

View Article

Adding a Formula to entire column in table

I am trying to add a formula to a defined column in a a table. I get a method range of object error. I previously used the .value and a for loop to enter the forumlas into each cell but I would like...

View Article

Compare and Count Two Columns, Then Filter Out 100 and 0

Hello, I'm trying to find a way/formula to compare the values in MAR columns to FEB column and if they match to count them and not "100"and "0." These are percentage complete. Need to find the...

View Article


Vba: Using Countifs for Calculating " < " Percentage

Hello, I would like to use Countifs to count number of occurences >50% and the following does not give any error message but no right answer either. can i get some help ? Note: the 16th Column has...

View Article

Tweak a 'column sum' macro

I have just found a 'column sum' macro that looks like it will work out for my situation exception for one small detail. The macro is column-specific. I would like to be able to sum columns on the...

View Article


Macro/If Then statement to move a row of data

I am using 2010 Excel and here is what I am trying to achieve. I have a spreadsheet with drop down menu's. One of the columns I have is APPROVED. The drop down menu is YES and NO. When the user marks...

View Article

Automatic Uppercase

I have been trying to get this code to work and cant. It worked once and wont work anymore. What am I doing wrong??? I just want to have excel automaticaly change everything put in a cell to all...

View Article


Adding and Deleting Rows with a Hide Row Macro CheckBox

Hello I currently have the following Macro for one of my many checkboxes in 2007 Excel: Code: Sub CheckBox4_Click()     Rows("96:120").Select     If Selection.EntireRow.Hidden = False Then...

View Article

Macro To Send Emails with PDF: Multiple Emails and PDF's

Hi Everyone! I need help creating a macro that will Email PDF's to multiple people with the PDF file that corresponds to them. I have 3 columns in Excel 2010: Column A has stores( 10 stores), Column B...

View Article

Image may be NSFW.
Clik here to view.

Cutting and Pasting rows loopwise as per the same value in Proposal(Column E)

I have been trying to write a macro that does the task of cutting the set of rows and pasting them alongside the columns. I have a sheet named "current sheet" with Columns A to J.Column A consists of...

View Article
Browsing all 49948 articles
Browse latest View live