I've just put together a new Windows 8 PC to replace my Windows XP Home computer.
After loading Office XP I've found that my macros containing SendKeys "{ENTER}" come to a screeching halt when that line is reached. The macros work fine otherwise.
I get the message "Permission denied" when that line in the macro is reached.
I've tried going to Excel.exe in File Explorer and changing permissions and security settings to suggestions I've found on the web to no avail.
I've also read there could be some issues with newer versions of Visual Basic
I'm logged in as an administrator on this single user desk top computer.
I need to find a work around for this as it's a critical part of my spread sheet. It's worked just fine for years on the XP machine.
Can anyone suggest an alternative to the SEND KEYS command or a way to get by this permissions problem?
Code below:
Sheets("COD").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("HALF ROUNDS").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("ELLIPTICALS").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("JAMBS").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("CROWNS").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("SPECIES").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("DRIP CAP").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Sheets("INCH TO FOOT").Select
SendKeys "{ENTER}"
ActiveWindow.SelectedSheets.Delete
Thanks,
BH Davis
Bookmarks