+ Reply to Thread
Results 1 to 3 of 3

Create a keyboard shortcut through Macro in order to copy paste special (divide)

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    6

    Create a keyboard shortcut through Macro in order to copy paste special (divide)

    Hello Team

    I am trying to find a way to avoid all these time consuming clicks in order to copy paste special and divide.

    I am always working with reports where figures need to be divided by 1000. Is there any way to:

    1) run a macro through a keyboard shortcut key in order to divide all the selected cells by 1000 (ideal solution), or
    2) copy 1000 from a cell and then use a macro to copy paste special and divide. (works fine as well if Option 1 is not possible).

    Please find attached a very simple file. Let's assume that this is my generated report and I want to divide all the values by 1000.

    Many thanks in advance
    Yannis
    Attached Files Attached Files
    Last edited by greywarden; 07-19-2017 at 10:58 AM.

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Create a keyboard shortcut through Macro in order to copy paste special (divide)

    Record a macro and assign the shortcut key you want then add this code into the Sub

    Please Login or Register  to view this content.
    Or create the code first and then:

    1.On the Tools menu, point to Macro, and then click Macros.
    2.In the Macro name box, enter the name of the macro you want to assign to a keyboard shortcut key.
    3.Click Options.

    4.If you want to run the macro by pressing a keyboard shortcut key, enter a letter in the Shortcut key box. You can use CTRL+ letter (for lowercase letters) or CTRL+SHIFT+ letter (for uppercase letters), where letter is any letter key on the keyboard. The shortcut key cannot use a number or special character, such as @ or #.

    Note: The shortcut key will override any equivalent default Microsoft Excel shortcut keys while the workbook that contains the macro is open.


    5.If you want to include a description of the macro, type it in the Description box.

    6.Click OK.
    7.Click Cancel
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: Create a keyboard shortcut through Macro in order to copy paste special (divide)

    My personal preference is to do like below.
    Please Login or Register  to view this content.
    Or I'd just type 1000 into some out of way cell. Then select the cell & copy.
    Select destination range, right click & hit "S" then "i" then Enter. (short cut for PasteSpecial, divide).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. COPY/ PASTE VALUE keyboard shortcut
    By vlady in forum Excel Tips
    Replies: 4
    Last Post: 10-06-2018, 04:40 PM
  2. Paste Values Keyboard Shortcut Key Combo???
    By Bradley Bland in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2014, 08:30 AM
  3. [SOLVED] Keyboard shortcut for "copy paste special values?"
    By Star AJ in forum Excel General
    Replies: 4
    Last Post: 03-19-2014, 06:34 AM
  4. [SOLVED] Using the Paste Special - Divide Function, DO NOT want to copy formatting
    By ncowan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-04-2013, 06:53 PM
  5. cut & paste swapping contents - keyboard shortcut ?
    By syncguy in forum Excel General
    Replies: 4
    Last Post: 02-29-2012, 09:14 PM
  6. [SOLVED] keyboard shortcut for paste special
    By Andrea in forum Excel General
    Replies: 2
    Last Post: 02-22-2006, 11:45 AM
  7. Keyboard shortcut not working when I copy macro to another computer
    By telewats in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-09-2006, 04:55 PM
  8. Keyboard Shortcut Paste Value
    By Llythwrffrom in forum Excel General
    Replies: 1
    Last Post: 02-21-2005, 12:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1