Results 1 to 2 of 2

Thread: Tricky problem with Excel formulas

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Tricky problem with Excel formulas

    Hi there,

    I have two WorkBooks (Book1.xls and Book2.xls)

    if want to copy a formula(='Sheet2'A1) from Book1.xls to the same place in Book2.xls, it paste (='[Book1.xls]Sheet2'A1). I dont want it referencing to the Book1.xls

    I have tried paste special formulas only, and it does not work.

    I think the best way is just to remove the = and copy past the formulas manually...

    Is there any better way?

    Please help!!!

  2. #2
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Re: Tricky problem with Excel formulas

    If you are using macros you could just parse the formula to remove the Book1 part
    e.g.
    VB Code:
    1. Dim x As String
    2.     x = ActiveCell.Formula
    3.     x = "=" & Right(x, Len(x) - Len("=[Book1]"))
    4.     ActiveCell.Formula = x

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width