+ Reply to Thread
Results 1 to 5 of 5

Got a "Mid" problem

  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

    Please Login or Register  to view this content.
    Last edited by NickMinUK; 03-04-2009 at 09:51 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Got a "Mid" problem

    You dont need to copy and paste.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

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

    Re: Got a "Mid" problem

    Fantastic and so simple. Thanks very much Sweep.

    If I wanted to copy a furmula to H6, would i change all the "value" to ""formula"? Also if I wanted to copy to a cell one to the right of that contained within BJ1 ie I6 instead of H6, would I use the offset function, and if so, how would this be incorporated. Thanks again Sweep.

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Got a "Mid" problem

    If I wanted to copy a furmula to H6, would i change all the "value" to ""formula"? Yes you would.


    Also if I wanted to copy to a cell one to the right of that contained within BJ1 ie I6 instead of H6, would I use the offset function, and if so, how would this be incorporated?
    Please Login or Register  to view this content.

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

    Re: Got a "Mid" problem

    Thanks Sweep. Works a treat. Much appreciated. Nick

+ 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