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

Create a macro to to copy data from one sheet to another

Hello, I am a beginner on Excel Macros and found this forum. Here is my question - I have file A, which has data in certain columns. I wanted to know if there is a way to create a Macro to copy and...

View Article


[SOLVED] Reference to second pivot table not working

I'm very new to VBA but I know how to record macros and I tried doing that for a report I run monthly. In the report, I make a pivot table of some data to sum up the data by country. I then highlight...

View Article


VBA issue creating new workbook with range

Hello, I am trying to figure out a VBA code for creating a new workbook with data paste- but I seem to keep getting errors with whatever changes I make. Essentially I am trying to have excel (VBA)...

View Article

Image may be NSFW.
Clik here to view.

separate the numbers from the 4th position to the 12th position.

separate the numbers from the 4th position to the 12th position then locate within the 01 to 25 https://www.excelforum.com/attachmen...1&d=1579895560 Attached Files 9 posiçoes.xlsx‎ (126.1 KB)...

View Article

For Loop Skipping last value for certain range of values

Hi, I wrote the following code using a for loop: Sub test() Dim n As Double, t As Double t = 1.5 Range("A2").Select For n = 0 To t Step 0.1 ActiveCell.Value = n ActiveCell.Offset(1, 0).Select Next n...

View Article


Image may be NSFW.
Clik here to view.

Help with attendance record

Hi, I'm new here, haven't used macros for a couple of years. My problem is with attendance record, it shows the users, the date, and all the hours they use the system. What I need is to show a sheet...

View Article

Need Help with Macro Compile Error

I have Excel 2016 and I export a list of checks from my accounting program. I recorded a macro to make the adjustments to the file - formatting, columns, etc. I had no problem in an older version of...

View Article

Workbooks.open fails when run from macro

Excel 2019 Windows 10 Have a large wb that takes maybe 6 seconds to unpack itself. Been running it from a macro for years under excel 2007 without much issue Now, it randomly (but MOST of the time)...

View Article


Image may be NSFW.
Clik here to view.

Copying data based on criteria

Dear Gurus, I stacked with small problem as new to VBA coding. I need a macro which will copy data from initial table, but taking into account pre-defined "code". Thank you in advance for any ideas...

View Article


Worksheet References using Object Variable

I have a workbook with 2 worksheets: sheet1 and sheet2. I am attempting to populate an array (mntharray) from the Range "A6:D10." This range is not fixed and can have more or fewer rows so a formula...

View Article

Image may be NSFW.
Clik here to view.

Macro to input formula in missing D column and undo merge cells in a certain...

So I have a worksheet that when freelancers enter in the days of the week they have off (in cells N4:N6), the time formula is deleted in D in every row for that day of the week, and columns E:R are...

View Article

Mac Versions of Library Functions?

I have over 60k lines of code, and therefore use many Library functions for all my features to work. I am aware that they only work for Windows machines, and won't work properly for Mac? Can someone...

View Article

Image may be NSFW.
Clik here to view.

Expand Algebraic Formula to Column

I need to expand simple algebraic patterns into a column. The patters has repeat segment like (AB)*5 which need to be displayed as ABABABABAB. Attached Files Output Template.xlsm‎ (31.0 KB) Download

View Article


Image may be NSFW.
Clik here to view.

Extract data from Power Point to Excel

Hi, I am trying to extract data from Power Point slides to an Excel worksheet. Fairly certain it is possible, but I don't know the VBA coding. Attached are samples. Thanks. Attached Files SUMMARY...

View Article

Environ conditional

Hi, I'm using the following code to bring username & date/time stamp - is it possible that if the date doesn't match with cell B6 then it automatically turns Red or circle etc to indicate Code:...

View Article


Image may be NSFW.
Clik here to view.

[SOLVED] VBA code for copy paste data to active cell

In the attached file in E column you find this names "AKOLA-MANDI, KARANJA-MANDI ,KHAMGAON MANDI, MANGARULPIR MANDI ,AMARAVATI MANDI" if i want to copy one of that five names for example i want to...

View Article

Shift cell content left, replace with space

Hello and thanks in advance. I have 3 columns with the same number appearing randomly. I'd like them all shifted to the same column, and the vacated cell then have a space or something like an...

View Article


Image may be NSFW.
Clik here to view.

Changing font size of a portion of an output in a cell

I have a file in which I added some VBA code to convert numbers to words. I want to increase the font size of the currency name only. Below is the attached file. Attached Files USD to Words.xlsm‎...

View Article

Using Item(1) to work with a file

Hi all, I tried to get a file from a folder (for copy) using the method Item(1) to and I have runtime error. To work with a worksheet I can use Worksheets.Item1) for .Files I can't thanks in advance...

View Article

Opening a word document from inside an Excel spreadsheet

Hi I'd like to be able to open a word document from inside an Excel Spreadsheet. First of all, is it better to have Word open or does that not matter? Since I am not conversant in VBA I tried to do it...

View Article
Browsing all 49881 articles
Browse latest View live