+ Reply to Thread
Results 1 to 3 of 3

Row and Column Returns

  1. #1
    Registered User
    Join Date
    03-12-2008
    Posts
    2

    Row and Column Returns

    Hello, I am fairly new at this so here goes.

    I am trying to return string from a dynamic row but static column to a single cell on running the macro.

    I have been able to get the macro to return my dynamic row with ActiveCell.Row

    and then tie up the result to a cell in excel.

    What I cannot do is get the fixed column to register and then combine the 2 to give me whats in the cell at that reference.

    so far I have,

    Please Login or Register  to view this content.
    This gives me the row number.


    can anyone help.

    Thanks Gtea
    Last edited by VBA Noob; 03-12-2008 at 04:49 PM.

  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,258
    Hello Gtea,

    If you want the column number of the ActiveCell then follow the same logic as the row number. Use the Cells property to givve you the reference you want.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    03-12-2008
    Posts
    2
    excellent!

    It works great. I was going for the fixed column so thanks for that.

    I had the right idea but did not know the Cells(R, C).Value function. I was using to Dims for R & C and trying to use the Union function to come up with a range for the search. Was not working. So thanks again.

    Gtea

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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