+ Reply to Thread
Results 1 to 4 of 4

Ctrl + Shift + Spacebar

  1. #1
    Registered User
    Join Date
    05-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Ctrl + Shift + Spacebar

    Hey all,

    I'm looking for a macro that does the same thing as Ctrl + Shift + Spacebar. Basically starting in A1 hit Ctrl + Shift + Spacebar to select the data found in my autofilter. So column A through S is always the same but the number of rows changes each time. Probably an easy fix but I'm a VBA noob.

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ctrl + Shift + Spacebar

    Something like:
    Please Login or Register  to view this content.
    CTRL-SHIFT-SPACEBAR does a select, something we humans have to do (select) before we can act on a range of cells. VBA does not have that limitation, as shown above you can copy the range without selecting it first.

  3. #3
    Registered User
    Join Date
    05-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Ctrl + Shift + Spacebar

    CurrentRegion was what I was looking for! Thanks for the quick help.

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ctrl + Shift + Spacebar

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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