+ Reply to Thread
Results 1 to 3 of 3

Copy range that includes formula and paste to another sheet

  1. #1
    Forum Contributor
    Join Date
    10-01-2008
    Location
    Eureka, CA
    Posts
    161

    Copy range that includes formula and paste to another sheet

    This is a weird one. I have a table in one spreadsheet that is copied to another spreadsheet each time that other spreadsheet is opened. Their are formula's (sort of) in some of the cells to be copied. The formula's are useless in the spreadsheet that they are being copied from, but are needed in the spreadsheet they are copied to. In the table that is to be copied each formula has an apostrophe in front of the equal sign. I have code that removes the apostrophe after everything has been pasted to the new workbook, unfortunately, even with the apostrophe gone the formula's fail to calculate. I can double click on the cell with the uncalculated formula and hit enter, then it calculates properly. I don't understand why it isn't calculated automatically after the apostrophe's are removed, can anyone tell me what needs to be done so that the formula's will be recognized as formulas after having the apostrophe removed. Here is the code i am using to remove the apostrophes
    Please Login or Register  to view this content.
    I tried changing "s.text" to s.value but it was the same result. Any suggestions? Thanks guys

  2. #2
    Forum Contributor
    Join Date
    10-01-2008
    Location
    Eureka, CA
    Posts
    161

    Re: Copy range that includes formula and paste to another sheet

    Nevermind, I was referencing the wrong row in the formula. Thanks anyway guys

  3. #3
    Forum Contributor
    Join Date
    10-01-2008
    Location
    Eureka, CA
    Posts
    161

    Re: Copy range that includes formula and paste to another sheet

    i marked this as solved a bit prematurely. I realized that the formula only calculates if the sheet is activated before the loop in the code above. Not sure why, but it was an easy fix.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy Cell Range From Previous Sheet and Paste to Active Sheet
    By jtal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2013, 03:26 PM
  2. [SOLVED] Macro to copy a cell range and paste to a new sheet 'n' times where 'n' defined by formula
    By staminaboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2013, 11:39 AM
  3. [SOLVED] Copy range from one sheet and paste in another sheet on the next visible row after header
    By MaQian in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2013, 10:48 AM
  4. Macro to Copy a range from one sheet and sellect where to paste in another sheet
    By Bud Wilkinsonn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2013, 06:49 PM
  5. Copy dynamic range from previous sheet and paste after last used row in a range
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2010, 06:24 PM

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