+ Reply to Thread
Results 1 to 5 of 5

range code not working

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    range code not working

    Hello. Why is this range code not working?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: range code not working

    Cells(3, Column) should not be inside the quotes.

    It should look something like this.
    Please Login or Register  to view this content.
    Note I've added Copy because you can't just have Range on it's own, you need to do something with it.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: range code not working

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: range code not working

    Thanks. Why do you put a comma and not a ":"?

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: range code not working

    You use : in a range address, you aren't using an address here.

    If you wanted to you could do it like this.
    Please Login or Register  to view this content.
    In that code "B3:" & Cells(3,Column).Address will make up the range address.

+ 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] Working code omend to take all used range in column
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2014, 04:02 PM
  2. [SOLVED] Working code need inputbox for range
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2013, 06:52 AM
  3. [SOLVED] user form range not working in code
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-20-2012, 11:20 AM
  4. Subscript out of range error & code not working
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-01-2011, 03:53 PM
  5. Same code not working - copying non-contiguous range
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2010, 05:52 AM

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