Hi,
I have some code behind in micro that executes an excel sheet once you start opening the excel file. Basically it reads pc address in variable GetMacAddress and displays in a msg on the screen.
Basically this is to protect my excel sheet of being used by others without my approval. Even someone takes my excel sheet and run on his pc it will bring the
pc address and it should match with pc address that I wrote somewhere on sheet. If both are matching then, the sheets calculation will run smoothly.
Till executing and bringing the pc adress in GetMacAddress value in a msgbox is ok. It is displaying fine.
Now my question is how can I paste this GetMacAddress value at the desired cell in desired sheet thru code and further it should compare with each other to run the sheet otherwize, quit excel application.
I have some code behind in micro that executes an excel sheet once you start opening the excel file. Basically it reads pc address in variable GetMacAddress and displays in a msg on the screen.
Basically this is to protect my excel sheet of being used by others without my approval. Even someone takes my excel sheet and run on his pc it will bring the
pc address and it should match with pc address that I wrote somewhere on sheet. If both are matching then, the sheets calculation will run smoothly.
Till executing and bringing the pc adress in GetMacAddress value in a msgbox is ok. It is displaying fine.
Now my question is how can I paste this GetMacAddress value at the desired cell in desired sheet thru code and further it should compare with each other to run the sheet otherwize, quit excel application.