Results 1 to 2 of 2

Sheet is variable... - formula not working

Threaded View

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    Riga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Sheet is variable... - formula not working



    I have set Active Sheet as variable s;

    Then i select Sheet1;

    On cell H8 in Sheet1 sheet i need to get F27'; space; F28 from sheet s + the content that was aleready in H8 in Sheet1.


    Sub Notik1()
          
        Dim s As Worksheet
        Set s = ActiveSheet
        
        Sheets("Sheet1").Select
             
    
    ' this dosen't work
    
        Range("H8") = Range("H8") & " " & "='" & s.Name & "'!F27" & " " & "='" & s.Name & "'!F28"
    
    End Sub
    Last edited by madars; 02-08-2011 at 06:56 AM.

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