Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default shortcut key to macro variables

My macro variables are often long and hard to keep retyping.

When I'm programming a macro, is there a shortcut or pull down menu to
select variables already is use?

This would be faster and would also prevent mistyping.
--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default shortcut key to macro variables

You can go to ViewLocals Window while you are stepping into a macro and it
will show all the variables in that particular macro. It will not give you a
menu of variables to pick from. There is nothing that I know of that will do
what you described. However, some code writers use the Dim declarations at
the top of the macro to track their variables by making the declaration as
soon as they assign the variable.

Another technique, is to keep the procedures short so that the number of
variables per procedure are minimized. Then, if you happen to use the same
variable in a different procedure, it will not cause an error. This concept
uses a master procedure to call a series of small procedures in their logical
order. It is easy to track your variables and it periodically frees up
memory so that the code runs better.

"Richard" wrote:

My macro variables are often long and hard to keep retyping.

When I'm programming a macro, is there a shortcut or pull down menu to
select variables already is use?

This would be faster and would also prevent mistyping.
--
Richard

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM
Macro Shortcut Key Conflicts with Application Shortcut Keys Jordan Hotzel Excel Programming 0 October 13th 06 06:39 AM
Passing variables from Outlook Macro to Excel Macro [email protected] Excel Programming 2 January 7th 05 10:07 PM
passing variables from an excel macro to a powerpoint macro jake Excel Programming 1 December 11th 03 02:36 AM
Macro shortcut from XLA Conceptor[_2_] Excel Programming 1 November 11th 03 11:54 PM


All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"