+ Reply to Thread
Results 1 to 8 of 8

Selecting used cells in a column

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Selecting used cells in a column

    I had a code written where the User gets to choose the range of values.

    I have automated it since and now want the prgraom to pick the values from a column without asking the user.

    The code I have

    Please Login or Register  to view this content.

    I tried to two different sceanrios in teh above code

    Please Login or Register  to view this content.

    and also

    Please Login or Register  to view this content.
    both cases excel gives an error saying Object Required .. Block variable....

    Its a small fix but not having a background in VBA coding, I am little stuck up here.

    Any help is much appreciated

    -Subbby
    Last edited by subbby; 11-08-2016 at 02:44 PM. Reason: Solved

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Selecting used cells in a column

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Selecting used cells in a column

    Quote Originally Posted by davesexcel View Post
    Please Login or Register  to view this content.
    Pointing towards 'r' and saying invalid qualifier

  4. #4
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Selecting used cells in a column

    This is the code I have

    Please Login or Register  to view this content.
    Its point at 'r' and giving the error "Invalid Qualifier"

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Selecting used cells in a column

    r is not a range, it is the row number of the last row in column B

  6. #6
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Selecting used cells in a column

    Quote Originally Posted by davesexcel View Post
    r is not a range, it is the row number of the last row in column B
    Not sure, what code modification I should be doing to make it work.

    Any help , much appreciated !

    Thanks,

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Selecting used cells in a column

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    AddFile.jpg
    To add a file to a post

  8. #8
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Selecting used cells in a column

    Quote Originally Posted by davesexcel View Post
    Attaching a sample workbook enables others to work on your problem:


    To add a file to a post
    I humbly apologize for that. I should have put up a excel sheet as I did in the past.

    However, I have solved this one.

    i used
    Please Login or Register  to view this content.
    and it worked.

    Thanks for your time and efforts

    appreciate it

    -Subbby

+ 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. [SOLVED] Selecting cells in a column
    By longbow007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-09-2016, 11:17 PM
  2. [SOLVED] Selecting Non-Contiguous Cells Containing Data in a Column
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-25-2014, 05:26 PM
  3. Selecting a column based on a cells value
    By gjwood in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2013, 03:08 AM
  4. Selecting Cells in a column that only have data
    By capnhud in forum Excel General
    Replies: 2
    Last Post: 06-04-2010, 08:48 AM
  5. Alphabetizing a column then selecting a range of cells
    By JosephJames in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2009, 04:16 PM
  6. Selecting Non Blank Cells in a Column and inserting a row
    By salkovsg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2007, 03:54 PM
  7. Selecting some cells in a column for formatting?
    By Dan E in forum Excel General
    Replies: 13
    Last Post: 01-30-2005, 09:06 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