Results 1 to 1 of 1

Using indirect worksheet functions and vlookups

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Using indirect worksheet functions and vlookups

    Hello everyone. I have the following snippet of code that I use to assign a cell in a worksheet a variable from VBA:

    Sub Update_Formulas_Data()
    
        Dim sPath1      As String
        Dim wb1         As Workbook
        Const sFileInp1 As String = "Formulas.xlsm"
        
        sPath1 = fPath & fDate & "_157\Support_Summaries\"
        
            Set wb1 = Workbooks.Open(sPath1 & sFileInp1)
            Range("AV1").Value = fPriorDate
            Range("AV1").NumberFormat = "dd-mmm-yyyy"
         
    End Sub
    It works. I need help creating a vlookup formula which will use that cell refernce. First I have to concatenate the cell reference with the suffix "_CDS", and I must do so while mainting the dating format, dd-mmm-yyyy. Thats is where I am currently stuck. After that is done, I believe I should be using the Indirect worksheet function, but I am not sure how that is done. Any help is greatly appreciated.
    Last edited by AnthonyWB; 04-20-2010 at 02:02 PM.

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