+ Reply to Thread
Results 1 to 3 of 3

Selecting a Row

Hybrid View

EdWoods Selecting a Row 02-13-2017, 11:30 PM
ferday Re: Selecting a Row 02-13-2017, 11:49 PM
EdWoods Re: Selecting a Row 02-14-2017, 12:03 AM
  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Selecting a Row

    Hi,

    What am I doing wrong here?
    I want to select Columns A - J of whatever row the cursor is on

       CurrentRow = ActiveCell.Row
       Range("A" & CurrentRow:"J" & CurrentRow).Select
    I've tried putting brackets everywhere, and nothing seems to work.


    Thanks

    Paul
    Last edited by EdWoods; 02-14-2017 at 12:04 AM.

  2. #2
    Registered User
    Join Date
    11-18-2014
    Location
    australia
    MS-Off Ver
    2015
    Posts
    43

    Re: Selecting a Row

    is that a copypasta? because your range is missing an &

    this works for me

    Dim c As Integer
    Dim a As Range
    
    c = ActiveCell.Row
    Set a = Range("A" & c & ":J" & c)
    a.Select

  3. #3
    Forum Contributor
    Join Date
    09-29-2011
    Location
    ɹǝpun uʍop
    MS-Off Ver
    365
    Posts
    250

    Re: Selecting a Row

    Awesome. Thanks for that.

+ 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. Replies: 4
    Last Post: 01-28-2016, 11:13 AM
  2. [SOLVED] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 AM
  3. Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 03:50 PM
  4. Error When Selecting Sheet then Selecting Range
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2012, 04:11 AM
  5. VBA selecting top 3
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-30-2009, 12:38 PM
  6. Selecting most of a row
    By gwithey in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-20-2009, 12:11 PM
  7. [SOLVED] Selecting The Last Row
    By Minitman in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-24-2005, 11: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