+ Reply to Thread
Results 1 to 4 of 4

question about navigating rows and columns using vba

  1. #1
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    question about navigating rows and columns using vba

    so i have assigned a row number to a variable 'rownum' . i have selected column B and gave it the named range of col_b_rng. in my code i have this:

    Please Login or Register  to view this content.
    on the col_b_rng = Range("B:B") line i am receiving a Method 'Range' of object '_Global' failed error

    can anyone help me rearrange this so it works? i was simply typing the column number in instead of a name but i am trying to simplify things. is this possible?? thanks!!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: question about navigating rows and columns using vba

    Hello fredderf81,


    Excel will not allow you to rename a range column or row using the system labels "A,B,C..." for columns or 1,2,3... for rows. It would prevent Excel from working. The workaround is to create a named range that starts with the first cell of the range down to the last.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-12-2013
    Location
    chicago, illinois
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: question about navigating rows and columns using vba

    ahh yes! excellent!! thank you :-)

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: question about navigating rows and columns using vba

    Hello fredderf81,

    You're welcome. Thanks for marking the post as solved.

+ 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: 2
    Last Post: 08-18-2012, 05:36 AM
  2. URGENT! Please help! are navigating two columns and transfer results to other sheet
    By fodaftrykket in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2011, 03:58 AM
  3. Navigating Rows Dynamic Range
    By ZooTV92 in forum Excel General
    Replies: 1
    Last Post: 08-23-2011, 06:59 AM
  4. Navigating in filtered rows
    By anandmr65 in forum Excel General
    Replies: 2
    Last Post: 02-21-2006, 06:04 AM
  5. Another question moving rows to columns
    By fivestringfreak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2005, 03:45 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