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

Using MACRO to filter and copy the data.

hi, I am having a serious trouble in my MACRO, i have tried to watch some youtube videos but nothing works. The Idea is, I want the MACRO to go to a specific column and filter it, lets say with the...

View Article


Copy data from first cell in range then move to next cell

Hi there, sorry its been along time since i've dabbled in VBA so i'm very rusty. i'm working with a 4 sheets. sheet 1 is used as a register. sheets 2,3 & 4 are 3 different types of inspection...

View Article


[SOLVED] Find empty column and drag formula to the last row

Hi all, appreciate someone help on this matter. For example, row A1 - Z1 got information (variable every time. Could be A1 - X1). I want my VBA to identy next empty column, in this case should be AA1,...

View Article

Image may be NSFW.
Clik here to view.

how to do clear contents for Merge cells

Hi All, Hope you are doing great, please assist on attached file i have to do clear contents but cells are merged. Attached Files test.xlsm‎ (13.1 KB) Download

View Article

Toggle Button Self

I am trying to post a code into 200+ different toggle buttons, involving the toggle button affecting itself - applying a more vibrant color for being active. But this involves going through each...

View Article


Image may be NSFW.
Clik here to view.

Web scrapping through VBA from a particular cell of HTML table

I have a VBA code (thanks to rorya for making it workable for me) for scraping web data from a web page. This VBA is working fine. Now the data is moved to another page with some more fields. Form...

View Article

How to prevent VBA function calls from reevaluting when worksheet opens up

I have some VBA functions which print a string on the cell from where it's called. For e.g. Code: Public Function PrintStuff() As String         Val1 = Application.ThisCell.Offset(0, -3)         Val2...

View Article

[SOLVED] Find partial text and replace entirely

Anyone have any idea to find partial text and replace it entirely. For example, in first row, the header contain Apple Juice. I want to make it become "Apple" only. Below code simply does not work...

View Article


read pivot's current sort settings

Hi all, Is it possible to read a pivot's ".AutoSortPivotLine" like it can be done with ".AutoSortField" and ".AutoSortOrder"? Sort.PNG My pivot has "Year" as a columnfield, so besides sort order and...

View Article


The name of a shape is in a cell and I want to indirectly reference it in vba

Hello amazing people of the VBA world, I'm slowly getting better at VBA and understanding it but i'm getting a bit stuck on this particular thing and unsure why it's not working. I've been able to...

View Article

code involving two workbooks, runs correctly from one workbook but not the other

Hello All, My first time posting here and very much a beginner in the VBA world. I have some code that gets some cell references from one workbook in order to reference a cell in another workbook. For...

View Article

Filter the Range, COPY it and Paste in another sheet,

Hi I want to autofilter the data and then copy this dynamic range and paste it to another sheet, however, I have an issue which is after filtering the data, the MACRO is copying the unfiltered data...

View Article

How to detect if i have float number or integer in cell value

Hi Guys, i have a function: Code: Function CheckVariableType(NamedRange, VariableType) As String     Dim VarValue As String         VarValue = Application.Range(NamedRange).Value         ''boolean...

View Article


Collate information, send in email

Hey, I have the below code that when you highlight a role and run the macro, its opens a new outlook email and paste the relevant data in place to let a client know their package has been dispatched....

View Article

Image may be NSFW.
Clik here to view.

Hyperlink - VBA - Automatically copy - Help

Hi All, I need to copy data from sheet 1 A1 and B1 to Sheet 2 B2 and C2 ( sheet 2 cells are fixed), I want to be able to do this by clicking a hyperlink on Sheet 1 in C3 I need this to continue in...

View Article


Image may be NSFW.
Clik here to view.

Compare two groups of data

Hello All, I have two groups of data AB and DE. I want to write a vba macro to compare them in a way shown in figure. the situation is little difficult when i have duplicate names like Pcm and Tcm....

View Article

Image may be NSFW.
Clik here to view.

User Form needs to update active sheet table.

I received help on this from this forum previously. The User Form works on sheet named "1". I need to have 100 tabs in this workbook all exactly the same. To summarize on the Summary sheet. The issue...

View Article


Image may be NSFW.
Clik here to view.

Need help with adding two formula to the below macro

Greetings I have this macro that I need to add to two lines formula pleaea I am not sure if am doing this correctly ----------------------------- Sub MacroTest()...

View Article

Macro to include dashes into identification number

SOLVED! Hey I am trying to include dashes into an identification number based on the number of characters in the cell. For example I want to turn A12010 to A1-20-10 or A120010 to A1-200-10. The...

View Article

VBA Script to fix formulas in multiple files with different sheet names

Good day all, first post and TBH, my VBA skills are limited to googling, finding something similar to my needs, and editing through trial and error until it works. However, I'm not having any luck...

View Article
Browsing all 49948 articles
Browse latest View live