string to range

  1. M

    Convert string to range

    I have a string variable called Bob that contains the value D2 and need it to convert it to a range called BobR. How do I do this? I tried Dim bob As String Dim bobr As Range bob = "D2" bobr = bob this is not an actual piece of my code exactly but I need to know how to do this in order to...
  2. I

    Convert a string to cell reference in VBA

    I have a piece of VBA code like this 'Cell A1's value is G4 varName = Range("A1").Value Range("C2").Formula = "='Sheet2'!" & varName What I'm trying to do is write this formula Sheet2!G4 within cell C2. Essentially, I guess I'm trying to achieve an indirect. But when i run it, C2's formula...
  3. W

    Dynamic Range in Xcelsius

    I am working in Xcelsius 2008 and I have created about 100 defined names. These refer to cells on Sheet2 that create ranges. I am having an issue calling the range as it gets returned as text. E.G.: I am using the following to build a range based on where the column header is found...

Some videos you may like

This Week's Hot Topics

  • Problem in vba vlookup
    Dear All Master, The problem I mean is as follows : 1. I want to modify the vba code because it takes too long/very slow to vlookup in VBA code...
  • VBA Vlookup
    Please for help. Why it`s not works? [CODE=vba]Sub Check_equpment1_click() Worksheets("Production_program").Activate Dim ans1 As Integer ans1 =...
  • Nesting INDEX MATCH into SUMIFS
    I currently have several formulas pulling in a SUMIFS from a data sheet, beginning with =SUMIFS('datasheet'!$N:$N, 'datasheet..... but as I am...
  • Extracting number from a range randomly
    Hello Expert, please kindly advise what is the best method to extract numbers from a range randomly I have a series of numbers in the range of A1...
  • Problem with If Formula
    I am using the following formula in cell A5. I would like if N5 is blank then A5 also return blank. If N5 is 0 or is greater than zero then equals...
  • Is there a way to make the day's name show up automatically in a header?
    I have a form I print out every day..and in the top right custom header I have the &[DATE], which automatically gives the current date in top...
Top