Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Word Macro


  • Please log in to reply

#1
karenlane

karenlane

    New Member

  • Member
  • Pip
  • 2 posts
Hi there,

I'm pretty new to macro's but what I want to know is how many macro's with shortcut keys can I assign. I want to be able to produce up to 200 macro's for people in the office but when I try to assign shortcuts keys eg: ctrl+1, ctrl+2 etc once I get up to number 9 and then try assigning number 11, it over writes number 1. I guess there must be a way to do this... any help would be appreciated.

With Thanks
  • 0

Advertisements


#2
dsm

dsm

    Member

  • Member
  • PipPip
  • 98 posts
Karen,
I don't think you will get to 200 shortcut keys, however you can use ctrl or alt or both + an alpha or numeric key provided the combination is not currently used. eg. ctrl + b is already assigned for bold text.


Another approach may be to have a single shortcut key which prompts the user for a code word or number which you then use to programatically call the relevant macro.

eg.


Sub Macro1()
'
Dim MacCode As String
Dim Dummy As Variant

MacCode = InputBox("Enter a Macro Code")

Select Case MacCode
Case "Macro2"
Call Macro2
Case "Macro3"
Call Macro3
Case "Macro4"
Call Macro4
Case Else
Dummy = MsgBox("No Match, Try Again", vbOKOnly)

End Select

End Sub
Sub Macro2()
'
Selection.TypeText Text:="2222222222222222222222"

End Sub
Sub Macro3()
'
Selection.TypeText Text:="3333333333333333333333"

End Sub
Sub Macro4()
'
Selection.TypeText Text:="4444444444444444444444"

End Sub
  • 0

#3
karenlane

karenlane

    New Member

  • Topic Starter
  • Member
  • Pip
  • 2 posts
Thank you so much, i will give that a try.

Regards,

Karen
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP