PC Review


Reply
Thread Tools Rate Thread

2 macros to insert new line

 
 
davegb
Guest
Posts: n/a
 
      26th Jan 2007
I have 2 spreadsheets I use nearly every day. In both, I've written a
macro to insert a new blank line that I fill in, and the new line is
formatted appropriately for that worksheet. I'd like to be able to use
the same shortcut to access each macro. Is there any way to have the
macro in the activesheet run when Cntrl i is pressed, not the macro in
the other worksheet, which is often open at the time. Or do I have to
have different shortcuts in each workbook? Or would one common macro in
my Personal workbook that checks the activesheet name and then inserts
the new line appropriate to that sheet be the easiest way to make this
happen?

Thanks!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeSBCcm93bg==?=
Guest
Posts: n/a
 
      26th Jan 2007
Put it in your Personal.xls
--
HTH,
Gary Brown
(E-Mail Removed)
If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"davegb" wrote:

> I have 2 spreadsheets I use nearly every day. In both, I've written a
> macro to insert a new blank line that I fill in, and the new line is
> formatted appropriately for that worksheet. I'd like to be able to use
> the same shortcut to access each macro. Is there any way to have the
> macro in the activesheet run when Cntrl i is pressed, not the macro in
> the other worksheet, which is often open at the time. Or do I have to
> have different shortcuts in each workbook? Or would one common macro in
> my Personal workbook that checks the activesheet name and then inserts
> the new line appropriate to that sheet be the easiest way to make this
> happen?
>
> Thanks!
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Insert 50 items from one table into a text box line by line Gregory A. Beamer Microsoft ASP .NET 0 14th Aug 2009 04:16 PM
how to insert text in an existing line w/o adjusting line length =?Utf-8?B?RC4gV3JpZ2h0?= Microsoft Word Document Management 1 1st Aug 2006 07:24 PM
Insert Line maintaining formatting and formulas from preceding line mangled_us@yahoo.com Microsoft Excel Discussion 8 30th Nov 2005 01:52 PM
How do I insert text on a line in preprinted page w/o line moving. =?Utf-8?B?UFA=?= Microsoft Access 1 30th Oct 2004 10:37 PM
REQ: is there a way to select a line of txt and then insert symbols or predefined letters in front and behind if the selected line totallyintheblue Microsoft Word Document Management 4 30th Nov 2003 05:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:42 PM.