+ Reply to Thread
Results 1 to 4 of 4

Selecting a cell with a variable

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Tilburg
    MS-Off Ver
    Excel 2010
    Posts
    11

    Selecting a cell with a variable

    Hi,

    I need a macro that asks the user to select a row and use this row in the macro. The idea is that when the user does not select a row or column A is empty for the selected row, the macro will stop running. I have written this code, which does not work:

    Please Login or Register  to view this content.
    Can anyone help me?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Selecting a cell with a variable

    Try this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Tilburg
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Selecting a cell with a variable

    Aah stupid, I forgot the "" around the A in the cells function. thank you for the help!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Selecting a cell with a variable

    Glad it helps you and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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