+ Reply to Thread
Results 1 to 3 of 3

Select Cells macro

  1. #1
    Registered User
    Join Date
    06-20-2006
    Location
    Detroit area, Michigan
    MS-Off Ver
    Microsoft Office 365 v16
    Posts
    68

    Select Cells macro

    I have a spreadsheet that has 9 columns and a varying amount of rows.

    I need to create a macro that selects all 9 columns for every row in which column #2 has data.

    Appreciate any help.

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Select Cells macro

    Hi,

    ...and then what do you want to do. As a general principle you should avoid selecting cells/ranges unless you only want to position the cursor.

    If for instance you want to copy them then this is one way - assumes your data starts in A1

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-20-2006
    Location
    Detroit area, Michigan
    MS-Off Ver
    Microsoft Office 365 v16
    Posts
    68

    Re: Select Cells macro

    This works - almost...

    I need the range to copy to begin with cell A2 and not A1.

    I made the following changes but it doesn't work correctly..

    Please Login or Register  to view this content.
    What am I overlooking?

    Thanks

+ 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. Macro to select cells
    By floridagunner in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-25-2011, 05:43 PM
  2. macro to select cells based on status of cells to left
    By dcbiker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2011, 05:15 PM
  3. Run Macro to select cells with value =1
    By go4cdt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2009, 02:17 PM
  4. [SOLVED] Macro to select cells and then new selection from selected cells
    By Rewop Eilsel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2006, 11:25 AM
  5. Macro to select various cells
    By DSC174 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2005, 12:05 PM

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