+ Reply to Thread
Results 1 to 2 of 2

Indirect reference in VB

Hybrid View

  1. #1
    Registered User
    Join Date
    01-17-2005
    Posts
    1

    Indirect reference in VB

    In a cell I have a formula that calculates a row number based on the selection from 3 list boxes, to select a row number.
    The formula is:
    =4+(Colleague-1)+((Month-1)*21)+((Year-1)*252)
    where Colleague, Month and Year are the results.
    Based on the result of the calculation, VB is supposed to select a range from a list on the row number returned by the calculation.
    e.g. if Colleage is the 3rd in the list, Month is 2nd, Year is 5th, then the required data is on row 1035 and the macro selects row 1035.
    Therefore the Range(......).Select vb statement should indirectly reference based on the the contents on the cell that has the calculation.
    How do I do this ? In an Excel workbook or Excel 4macro it would be a simple Indirect statement. What about VB ?
    Thanks,

  2. #2
    Registered User
    Join Date
    01-17-2005
    Posts
    9
    If you get a solution for this please let me know - I am desparate

    Thanks
    Brendan
    Brendan@campwild.co.uk

+ 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