Copy code to a new spreadsheet

  • Thread starter Thread starter Markl
  • Start date Start date
M

Markl

I have some code which highlights the active row on a spreadsheet.

I use this quite often and at the moment I copy and paste it from
spreadsheet to spreadsheet.

Is there any way to automate this? e.g. perhaps a customised button on
the toolbar that copies the code to my open spreadsheet

Thanks

Markl
 
Markl said:
I have some code which highlights the active row on a spreadsheet.

I use this quite often and at the moment I copy and paste it from
spreadsheet to spreadsheet.

Is there any way to automate this? e.g. perhaps a customised button on
the toolbar that copies the code to my open spreadsheet

Thanks

Markl

Why not just put it into your personal macro workbook, then it is available
to all. Or make it into an addin, then you can distribute it.
 
Markl said:
Excuse my ignorance but how would I do this?

Thanks

Easiest way to find your personal macro worksheet is to record a macro and
in the "Store macro in..." box select Personal Macro workbook.

Then when you go into the VBA editor, you PERSONAL.XLS in the project
explorer and you can easily add your stuff to it.

To save as an addin, just go to File->Save As... and Excel addin is the last
one in the "Save as type:" list.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top