Actually I see the issue now. I copied your sub, and changed to 755 in the code, which didn't work (for obvious reasons). Then I wrapped an input loop around it so that I could test different values, and 755 and 0755 are both read in as decimal values. Makes sense now. Sorry, been a long week.