+ Reply to Thread
Results 1 to 2 of 2

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

Hybrid 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.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help PLEASE! SHEET VARAIBLE!

    Your post does not comply with Rule 1 of our Forum RULES.

    Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search.

    Poor thread titles will be addressed according to the OP's experience in the forum:

    If you have less than 10 posts, expect (and respond to) a request to change your thread title.

    If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you

+ 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