ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy code to a new spreadsheet (https://www.excelbanter.com/excel-discussion-misc-queries/79549-copy-code-new-spreadsheet.html)

Markl

Copy code to a new spreadsheet
 

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
------------------------------------------------------------------------
Markl's Profile: http://www.excelforum.com/member.php...o&userid=13482
View this thread: http://www.excelforum.com/showthread...hreadid=526322


Paul Lautman

Copy code to a new spreadsheet
 
Markl wrote:
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

Copy code to a new spreadsheet
 

Excuse my ignorance but how would I do this?

Thanks


--
Markl
------------------------------------------------------------------------
Markl's Profile: http://www.excelforum.com/member.php...o&userid=13482
View this thread: http://www.excelforum.com/showthread...hreadid=526322


Paul Lautman

Copy code to a new spreadsheet
 
Markl wrote:
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




All times are GMT +1. The time now is 05:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com