Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Help
Hi All,
I have calling some macro like this Call Duplicate_Delete The Macro "Duplicate_Delete" deletes the col A's duplicate data using Countif function. Once this done again my main macro does some activity Again i need to run the Duplicate_Delete macro for the Col H. but previous i coded as Application.WorksheetFunction.CountIf(Range("A1:A" & x), Range("AY").Text). So, i need to run the same code for Col H. I know, i need to create new macro which hardly contains 3 lines. Is there any option i can assign it as follows Application.WorksheetFunction.CountIf(Range(ColA & "1:" & ColA & x), Range("AY").Text). Eg., Cola = "A" Call Duplicate_Delete '' do other work '' Cola = "H" Call Duplicate_Delete Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro to copy and paste values (columns)I have a macro file built | Excel Programming | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |