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

Macro to Shift Cells Down

This will probably be an easy one for you guys: We have time sheets to track project work. Each work book represents an employee. Each work sheet represents a specific month and year (Aug 12, Sep 12,...

View Article


Regarding Textbox values

Dear Friends How to solve this, i want result in texbox1, values from Textbox2 to Textbox7. Code: Textbox1.value = (textbox2.value + textbox3.value + textbox4.value +textbox5.value +textbox6.value...

View Article


Image may be NSFW.
Clik here to view.

Macro - Pulling out data on set criteria and consolidating

Hello all, I need a little help with a database I'm setting up for work. First Macro I have my set 'data' tab, which will pull lines of data each month from our accounting system. I'd like the data to...

View Article

Image may be NSFW.
Clik here to view.

Check all data entered in table before executing code

On the attached example, I have a table of data in the range of B4:R303. What I want to do is add some code before some existing code I have in a command button on the worksheet to check all data has...

View Article

Syntax for .End(xlToRight)

I have a formula that works on a dynamic range. I cannot go to the last column and work back to the left, as data exists to the right of my dynamic range. Hence I want to use .End(xlToRight) to find...

View Article


The Sorting Macro below takes too much computing time. Help me make it more...

Hey, you all! I wrote this macro myself, so I can only assume it is full of inefficiencies, but can you help me improve it? It simply aligns an entire table to the right by copy pasting the values of...

View Article

getting Application_defined or Object_defined error

I am using excel 2007. I am using a macro which copies all visible sheets to new workbook and saves them as text files. I have more than 12 sheets from which i have to copy at least 10 sheets. 4...

View Article

How to write a macro that calculates the change in orientation vector

Hello, I have a situation that which I cannot solve, which is a problem in both the macro and (a bit) the math side. Can anybody help me? I have a unit vector pointing in a certain direction in a 3d...

View Article


Check box hiding rows: View moves to where the rows used to be

I am using some active X check boxes to hide clusters of rows lower down in the sheet. It works great except for one little thing: When the rows hide, my view jumps all the way down to where the rows...

View Article


Macro to create CSV - Problems with spanish regional format

Hi, i was wondering if maybe you can help me out. I've created a macro linked to a button in Excel to take certain info populated in a spreadsheet and export it to a CSV file. It works fine so far, the...

View Article

Merge/Unmerge cells in a shared woorkbook

Hello, We were having issues with our Vehicle Rota around people making multiple copies because they were opening it in read-only and people leaving the Rota open then leaving so I altered it to a...

View Article

why excel creates two new worksheets instead of one using this code?

Hi all, Question is in the topic, instead of having one new workbooks with 6 sheets that contain the data from another workbook, it creates two - in the second one (say, Book2), sheet1, there is all...

View Article

I want to keep formula in cell when content is deleted...

I want a cell to retain its formula when the cell content is cleared... is this possible?

View Article


Image may be NSFW.
Clik here to view.

How to modify a word template with VBA excel

Hello, I'd like to replace the concerned words in the Word document. In case they are not available I'd like to put something like "-" Can you help me? Regards Attached Files Underlyings.xlsx‎ (11.3...

View Article

Filter Pivot table based on max date in column

I am working on a "dashboard" for mangement and want to automate this as much as possible. I have a pile of pivot tables that I need to refresh and filter for the latest date. the source data is on tab...

View Article


Image may be NSFW.
Clik here to view.

Extract data from text string to columns

Hello All I have a spreadsheet with a number of text strings in Col A and would to extract data from them and put it in a number of other Columns as follows 1.Time (in each row above the text string) -...

View Article

Image may be NSFW.
Clik here to view.

Macro Written, but I need to automate (Execute on Opening the XLS) with the...

Macro Written, but I need to automate (Execute on Opening the XLS) with the Ctrl+M automatically. Right now, I have to physically open a spreadsheet, then physically hit the Ctrl + M to execute the...

View Article


I need a VBS to edit excel spreadsheet

Hi I need a VBS that will do the following in excel. 1. Delete top row – whole row 2. Change whole sheet to number – same as convert to number function not cell/number category. The one where you...

View Article

Capitalizing First letter of name in VBA

Is there an easier way to capitalize the first letter of a variable and then lowercase the rest? Say my variable is fname, I think something like: FirstLetter = Left(fname, 1) UCase(firstLetter) (not...

View Article

Image may be NSFW.
Clik here to view.

Login Form To Control Workbook

Hai Again, This site always help me and again i am seeking help from experts to write for me a VBA-Macros where I can control a workbook for the user by creating new users, deleting existing user,...

View Article
Browsing all 50068 articles
Browse latest View live