In relation to macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have recorded a macro and i wish to keep the keyboard shortcut as ctrl C. I
have recorded keeping the short key as ctrl Q. Kindly help how can i change
it?

Second thing once i click record macro excel is not asking for relative
reference option. Kindly help how can i get that as well.

Thanks
Boss
 
To assign/re-assign shortcuts:
ALT-F8 > Options

(I like CNTRL-e and CNTRL-f because I use CNTRL-c for copy)

To get that relative button:

View > Toolbars > Visual Basic
BEFORE you start recording
 
On this topic, I have no icon my my Visual Basic toolbar that seems to
control relative addressing. Am I missing something? Thanks, James
 
Okay, thanks! I will check on that. Relative addressing sounds like a
really bad idea to me. Guess it works for some people. I tend to like
things to be absolute (which is probably why I like Excel to begin with!).
But I don't want to miss out on anything!
Regards,
James
 
It's not so much personal preference that should determine whether you use
absolute or relative addressing; it should be the application requirements.
It is quite typical to have both code and worksheet functions that make a use
of a combination of both addressing methods. Consider:
=VLOOKUP(A1,'Sheet2'!$A$5:$AA$10000,13,False)
The table needs to be absolutely addressed so that when the formula is
filled down the sheet, that lookup table reference doesn't change, but
similarly, the item to be looked up, in A1 initially, needs to be relatively
addressed so that the row reference will increase as the formula is filled
down the sheet.

Function quite often dictates design.
 

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

Similar Threads

writing a sort macro 2
The Relative Macro 6
Macro will not work - Please help 4
Macro Help 2
Copying & Pasting with recorded macros 9
Macro command 3
Macro & Protected sheet 2
Record Macro Toolbar 1

Back
Top