ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   application.match and value problem (https://www.excelbanter.com/excel-discussion-misc-queries/269425-application-match-value-problem.html)

Cbrehm

application.match and value problem
 
Have a "data" worksheet,
Column A contains the Item Number with column set to text

Dim val As String
With userforms1


val = Itemnum.Value


If IsError(Application.Match(val, Range("price").Columns(1), 0)) Then


If I enter the item number manually all works.
If I copy and paste values from another worksheet that is e-mailed to me every 3 months with new item numbers and pricing Application.Match will not work.

Help please

ThaNKS cARL


All times are GMT +1. The time now is 11:38 PM.

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