Closed Thread
Results 1 to 2 of 2

Sheet is variable... - formula not working

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

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: PROBLEM! Sheet is variable... - formula not working

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here


    Mod. post since duplicated with equally bad title: http://www.excelforum.com/excel-prog...dont-work.html

    Thread closed.
    Last edited by DonkeyOte; 02-11-2011 at 10:54 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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