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

Imorting CSV file in VBA

Hello,I want to import csv file in VBA but records should be imported and filtered based on some condition without the use of DSN. Could you please let me know whether this is possible or not and how....

View Article


Can a function be modified to accept a divisor?

Hello, I asked for and received assistance for the creation of this function. It's #4: http://www.excelforum.com/excel-prog...html?p=3078063 I've now modified the line: GetTens = CLng(Right(vVal \ 10,...

View Article


Macro skipping If statements when run but works in debug

I have a sub that when I run it in debug mode and run it step by step it runs perfectly, however when you let it run by itself it skips half of the if statements. Here is the code: Code: Declare Sub...

View Article

[HELP] vba for universal printing protection

hi all I have trouble writing VBA coding for excel, I want to create a password every time if some one want to printing, so every time click the print button or press CTRL + P, a dialog box for...

View Article

Cleaning Data Across Sheets

I am not too familiar with Macros, but I need to clean some data. I am not too sure what macros can do so I will explain two situations. For starters I have two excel sheets that have in column a list...

View Article


[SOLVED] How to implement array formula in the excel macro

How to implement below array formula in the excel macro ? Code:...

View Article

[SOLVED] "Call" using variable

I have a set of macros that are named the same except the names end in "01", "02" etcetera. I want to call a specific one of them based on the last two digits of a cell, something like this: Code: Set...

View Article

VBA code copy data from one sheet to another error

Using the following code I am trying to copy data from rawdata1 to rawdata2. However I get an outside procedure error with the Offset(1,0) part of code. Also NOTe; Therer is code to remove duplicates...

View Article


[SOLVED] Change the Creation Date and time of Excel Workbook

Hello Everybody, I want to change the Date of Creation and Time of Excel Workbook (Date of Creation must be in Past). Is it possible using VBA Macro?

View Article


6 Number Combination

Hi, I copied this VBA code from a search to help with 6/49 lotto. It is suppose to do the following: It allows an input (in Column B)of an x set of numbers (e.g. 1,2,3,4,7,0,42,34,12, etc.) and it...

View Article

Copy formula and change row number in VBA

Hi I want to copy the formula in column "C" to each row, and change the row number each time i add a new row with data. Anyone know how to do this? I know this won't work, but this is so that you may...

View Article

Image may be NSFW.
Clik here to view.

Macro to insert values in a range

Hi. I need a macro that allows me to input the value "0.1" in cells specific range over 12 sheets called with month sheets (Janueary, February, etc). Then i need another macro that erases all values in...

View Article

Data Classification Using Keywords with VBA

Hi All, Ok, So I have a "Description" column that contains a long text description in each cell, and I have thousands of cells like this. So what I'm trying to do is to classify each cell by main...

View Article


[SOLVED] Remove 'marching ants' from copied cell

Hi, I have a button with a single line of code to copy the contents of a cell for a user to paste elsewhere (probably a Word doc). How can I make the 'marching ants' vanish from around the cell that...

View Article

VBA Macros Array List Issue

Hello, I have an script which one of my friend help to write it. Due to some restriction i haven't provide him original data but now when i put it on my original file it is nto working. Code: Sub abc()...

View Article


Pasting values between ranges in different workbooks: "Range" works but...

Hello! I'm pasting ranges from one workbook to another without actually activating either. For the "range1" variable I'm using "Range()", and for the "range2" variable I'm using "Cells()". I'd like to...

View Article

Error 91: Object variable with block variable not set

This code opens an IE tab and puts the cell value from the sheet to the search bar and then click the go button Can someone please rectify the error it is coming in highlighted line: Option Explicit...

View Article


idear or template sample welcome

Hi All: I want to make a very large excel file/data base. My idea is following: 1. Let's say i have 10 clients. so when i open this file. first thing i like to see is solid color background with 10...

View Article

House Keeping of Macros

Dear Experts, In my endeavor to learn VBA, I have created more than 25 modules. Some macros created with the help of forum member are excellent piece of work and I use them often. My problem, I want to...

View Article

Image may be NSFW.
Clik here to view.

Sort values blank cells first

Hello, I am trying to sort a range which contains number by having the blanks sorted out first. Is there a formula or vba solution to achieve this? Many thanks. Attached Files blanks first.xlsx‎ (9.0 KB)

View Article
Browsing all 50049 articles
Browse latest View live