Yes, have saved this code in Thisworkbook section with the file name Rhel.xlsm so basically I want to disable save and saveas for Rhel.xlsm but not for Rhel.xlsx though its not workingYou will need to put the code in the Rhel workbook & save it as an xlsm file.
I have created a macro file to which if certain outputs are feed in Rhel.xlsm file it computes and generate other file named Rhel.xlsxYes, have saved this code in Thisworkbook section with the file name Rhel.xlsm so basically I want to disable save and saveas for Rhel.xlsm but not for Rhel.xlsx though its not working
I have created a macro file to which if certain outputs are feed in Rhel.xlsm file it computes and generate other file named Rhel.xlsxThe code will only work on the workbook it's in, so it will not affect the Rhel.xlsx workbook.
I have created a macro file for my organisation in which if you put certain database outputs it computes the whole thing and returns the result in Rhel.xlsx so all I want to do is I dont want a user to save My macro workbook I just want them to give the permission to save Rhel.xlsx file. I hope you understand.. Thanks for the help anyways.Sorry but I don't understand what you are saying.
It gets created automatically when database output gets feed in to the xlsm fileHow are you creating the Rhel.xlsx file?