Results 1 to 2 of 2

Help PLEASE! SHEET IS A VARAIBLE... My formula don't work!

Threaded View

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

    Exclamation Help PLEASE! SHEET IS A VARAIBLE... My formula don't work!

    I have set Active Sheet as variable s;

    Then i select Sheet1;

    On cell A1 in Sheet1 i need to get B1; space; B2 from sheet s + the content that was aleready in A1 in Sheet1.

     
    Sub A()
      
    Dim s As Worksheet
    Set s = ActiveSheet[/COLOR]
        
    Sheets("Sheet1").Select
             
    
    
    '--------PROBLEM
    
    Range("A1") = Range("A1") & " " & "='" & s.Name & "'!B1" & " " & "='" & s.Name & "'!B2"
    
    '--------PROBLEM
    
    
    
    End Sub
    Last edited by madars; 02-09-2011 at 04:10 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