Close

Results 1 to 3 of 3
  1. #1
    DF VIP Member Hadfield82's Avatar
    Join Date
    Jan 2004
    Location
    Blackpool
    Posts
    185
    Thanks
    2
    Thanked:        4
    Karma Level
    269

    Default Excel Macro Prob

    First off I am a total noob when it comes to VB. Anyway, I'm having a problem figuring out how to select a particular row using a variable ive set (Row) as an integer, to act as a counter. (I want it to go down each row and compare it to another sheet).


    I'm trying this:

    Rows("Row:Row").Select

    But it doesnt seem to like that at all


    Anyone got any ideas how I can do this?

  2. #2
    DF MaSter bingodave's Avatar
    Join Date
    Mar 2003
    Location
    UK
    Posts
    53
    Thanks
    0
    Thanked:        0
    Karma Level
    262

    Default Re: Excel Macro Prob

    Anything within the inverted commas will be treated as a value, not a variable, hence this:

    Rows(Row & ":" & Row).Select

    will give the desired result

  3. #3
    DF VIP Member Hadfield82's Avatar
    Join Date
    Jan 2004
    Location
    Blackpool
    Posts
    185
    Thanks
    2
    Thanked:        4
    Karma Level
    269

    Default Re: Excel Macro Prob

    Brilliant mate, thanks a lot

Similar Threads

  1. The Prob no-one has solved
    By stevensred5 in forum PC Problems
    Replies: 39
    Last Post: 23rd September 2002, 07:11 PM
  2. BF1942_slow motion prob...
    By shawtek in forum PC Gaming
    Replies: 8
    Last Post: 16th September 2002, 02:37 PM
  3. Partition Magic v7.01 Prob
    By mark1984 in forum PC Problems
    Replies: 1
    Last Post: 8th September 2002, 12:41 PM
  4. Laptop language prob!!
    By hotentot in forum PC Problems
    Replies: 3
    Last Post: 6th September 2002, 01:57 AM
  5. Kazaa prob
    By N3R0 in forum Music Factory
    Replies: 6
    Last Post: 29th August 2002, 09:00 PM

Social Networking 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
  •