+ Reply to Thread
Results 1 to 5 of 5

copy the formula

  1. #1
    Registered User
    Join Date
    04-12-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    96

    Talking copy the formula

    Hello, all. I am struggling with a problem. when i write a mcro to copy some necessary data, i hope i could copy the formula of the cell. For example, i want to copy the numbers from range(Cells(8, "AP"), Cells(500, "AP")) to range("DG8") i only know the method below:
    Please Login or Register  to view this content.
    but this is not what i want, even though it could still work, but there will be some cases like i suddenly found there was one number has to change in column AP, then i have to run the macro again, so i hope when i copy the data, it could store the formula in the coppied side, so when i change any number in column AP, the number in corresponding column in DG will also change automatically.
    is that possible to be done? Thank you all.
    Last edited by yjmmay34; 07-15-2010 at 04:56 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: copy the formula

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-12-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: copy the formula

    Quote Originally Posted by snb View Post
    Please Login or Register  to view this content.
    Hi,snb. I sorry but i'm not quite understand your code....The original code of the macro is like this, that's why i wrote it in that format. If like this, how should i do?? Please help. Thank you!
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-12-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: copy the formula

    Hello,snb. I know how to work already. thank you!
    Please Login or Register  to view this content.

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: copy the formula

    or
    Please Login or Register  to view this content.

+ 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