ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   avoid multiple text in range (https://www.excelbanter.com/excel-programming/317726-avoid-multiple-text-range.html)

CG Rosén

avoid multiple text in range
 
Hi Group,

Any hints how to approach this;

Filling a range by code below. How to to code to skip if the same text
in Worksheets(2).Cells(1, a) appears multiple times?

a = Application.WorksheetFunction.CountA(Sheets(2).Ran ge("A1:K1")) + 2
Worksheets(2).Cells(1, a) = Worksheets(1).Cells(r, 2)

Brgds

CG Rosén




All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com