Results 1 to 5 of 5

Got a "Mid" problem

Threaded View

  1. #1
    Registered User
    Join Date
    06-12-2004
    Posts
    15

    Got a "Mid" problem

    Hi. I am trying to copy a value to a ref contained within another cell.
    BF3 is where the formula is to copy
    BJ1 contains the cell ref of "H6"
    BI10 is the next cell to select

    I think the problem is activecell = Mid(BJ1,1,5) which is the cell to which i want to paste the value. BJ1 contains the ref in text format of "H6" I am therefore trying to copy the value in BF3 to H6

    Any idea what I am doing wrong?? Thanks in anticipation

    Sub Macro2()
    
    Macro2 Macro
    
        Range("BF3").Select
        Selection.Copy
        ActiveCell = Mid(BJ1, 1, 5)
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Range("BI10").Select
    End Sub
    Last edited by NickMinUK; 03-04-2009 at 09:51 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