Is there a way of using validation to stop white spaces in a cell or range of cells

Nov 25, 2013 at 3:44 PM

In my application I get my users to download an Excel file created using EPPlus, I want to control what the user can enter into certain cells, specifically I want to stop the user entering in white spaces.

Is the re a way of doing this with RegEx or any other means?