jrobin5881
Technical User
I receive an excel sheet of data from another application. This sheet is saved in a folder. I have VBA written to copy and paste the sheet into another workbook. All of that works fine. Here's the issue: Column A of the imported sheet has zipcodes that have a leading space before the number. I need to use that column as a lookup for the name of the town that I have on a hidden worksheet(I use the index/match function). I need to get rid of the leading blank space in order for the lookup function to work and I can't. I've tried everything:
-Added a column and tried trim function
-Put a 1 in a blank cell and tried Copy Paste Special Multiply
-Format Cells - Text on the column
-If I use the F2,Home,Delete,Enter keys in this sequence it works. I was going to put that in a loop and send it down the column but I couldn't get the send keys function to work.
-I tried using the paintbrush formatting tool from the lookup sheet to the data sheet.
I don't know what else to do.
-Added a column and tried trim function
-Put a 1 in a blank cell and tried Copy Paste Special Multiply
-Format Cells - Text on the column
-If I use the F2,Home,Delete,Enter keys in this sequence it works. I was going to put that in a loop and send it down the column but I couldn't get the send keys function to work.
-I tried using the paintbrush formatting tool from the lookup sheet to the data sheet.
I don't know what else to do.