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

Help with code (identifying variables and properties)

I have a couple of questions about the code below. What does "usedrange" mean? When they say "If del is Nothing", what is the value of Del? I guess I would just like someone to walk though each line of...

View Article


Looking to shorten VBA code

Hello, I am very new to Excel and trying to learn how to shorten a marco that is recorded. Looking at the VBA code below, can you please offer any tips or advice to shorten the code. I am looking more...

View Article


Open a file with VBA, name varies

I know you can open a file using Code: Workbooks.Open Filename:="Path Name/file.xlsx" But is there a way to open it if part of the file name is a cell value? I have files named after my clients. In...

View Article

Move data in real time from another program

I am working on a project where kids will crank a generator and WattsView software will display how many Watts are being produced. Is it possible to bring that data into an excel worksheet in real...

View Article

Iterate through two lists in parallel to determine B for corresponding A

Hello All, Here's the story. I have a list of 10 possible "Tiers" and a list of 10 possible "Rates" I want to program my macro so "If 'A1' = Tier1, Then 'A2' = Rate1", "If 'A1' = Tier2, Then 'A2' =...

View Article


Image may be NSFW.
Clik here to view.

Remove Unwanted Rows.

Hi All, I need to remove all the rows that Column G value is not A, E, or G. I have problem with how to code the conditions and loop. Your help will be appreciated greatly. Best regards, Matt Attached...

View Article

Macro to send data to estimate sheet

Document1.pdfBook1.xls I would like some help with a macro to send data from the MPD sheet to the Estimate sheet (I forgot to name the sheets, sheet 1 is going to be MPD and sheet 2 will be Estimate)...

View Article

How to find index and value of an Array

Array("Tier 1", "Tier 2", "Tier 3", "Tier 4", "Tier 5", "Tier 1/2", "Tier 2/3", "Tier 3/4", "Tier 4/5") Given an index, how do I find the value of an Array at the index? (ex: Array(4) = ?) And Give a...

View Article


Last non-zero number in column where column contains numbers and letters

I have a column with zeros, non-zero numbers, and strings. I need to determine the row number that the last non-zero number is in. This previous thread provided a good example, but it wasn't quite what...

View Article


Populating cells based on another cell value

Hi I am working on an application capturing pricing schemes. The application works as follows Cell G4 captures the customer ID columns B, C, D, E and F (rows 7 to 21) contain drop down lists for...

View Article

Loop Through Worksheets in a Workbook

I'm trying to perform various actions to each sheet in an open workbook. The amount of sheets varies as well as the name of each sheet. I'm having trouble getting my program to make it past the first...

View Article

Trying to Open Files Not Located in Specified Path

Hello Everyone, I have a macro that has run just fine as recently as yesterday, however, when I try to run it today, I keep getting a "Run-time error '1004': Microsoft Excel cannot access the file..."...

View Article

Image may be NSFW.
Clik here to view.

Match lists (date and time columns) in excel

Greetings, I have a problem which I do not know how to handle.. Let me get to my point (an example is attached): In sheet "Data" I have: date in column A, time in column B, and important information in...

View Article


Image may be NSFW.
Clik here to view.

"Pushing off" oldest data

I know the title is pretty vague but I honestly couldn't find a better description. Attached is a sample workbook. It tracks the last 4 purchases of an item. My goal is to have a macro that "pushes"...

View Article

Date Picker in UserForm will not add value to specified cell

Hi all, Having a problem with the DatePicker button in my UserForm. I am trying to have the date selected in the DatePicker button fill a specified cell. I basically want to be able to add projects and...

View Article


Macro to insert n columns every nth column

I need a macro written that I will help me add 6 columns every other column beginning at column F. I have tried to edit the other macros in this forum, but I am having trouble understanding them enough...

View Article

Image may be NSFW.
Clik here to view.

Cell that retains value but adds to it if another cell is changed

Hello, Just wondered if any of you guys can help. I'm trying to get a Cell to hold the previous number in that cell and add to it if another cell changes. So I would like to have a cell with the...

View Article


Image may be NSFW.
Clik here to view.

[SOLVED] Store range into array?

I cant figure out how to set .HTMLBody as the contents of sheet1 (which contains unformatted HTML). Here is the code I'm using (it's also included in the attached workbook): Sub...

View Article

Help with Macro to delete blank cells

Hi I have written my first, probably very longwinded Macro,all it does is enable a date stamp for serial numbers when inputted and then a simple clock that counts in days how old the stock is.What I'm...

View Article

How to use autofilter with an array

Hi, I am trying to filter a list based on certain names that the list can include. My code isn't working and I can't figure out why. The tricky thing is I can't just list all of the names I want to...

View Article
Browsing all 50085 articles
Browse latest View live