Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Paste a function using a Macro

I am using a master spreadsheet to collect data from several project
spreadsheets.

Some of the older project spreadsheets are missing the most recent data
cells, and I want to update the appropriate cells via a macro.

after opening the old file from my master spreadsheet...

Sheets("REPORTING").Select
Range("B87") = "Abv from L4 Request"
Range("D87") = "=L4_Request!Q44"

The second cell ends up as text. I need it to work as a function.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Paste a function using a Macro

Thanks Don, but I still get the function as Text. Is there any chance some
other part of my code could be effecting this? (I tried the .FORMULA=)

"Don Guillett" wrote:

Range("D87") = "=L4_Request!Q44"
Range("D87") .FORMULA= "=L4_Request!Q44"


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Chris T-M" wrote in message
...
I am using a master spreadsheet to collect data from several project
spreadsheets.

Some of the older project spreadsheets are missing the most recent data
cells, and I want to update the appropriate cells via a macro.

after opening the old file from my master spreadsheet...

Sheets("REPORTING").Select
Range("B87") = "Abv from L4 Request"
Range("D87") = "=L4_Request!Q44"

The second cell ends up as text. I need it to work as a function.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Paste a function using a Macro

Very possible that you have pre-formatted the cell as text.

Re-format to General and try again.


Gord Dibben MS Excel MVP

On Fri, 1 Feb 2008 14:58:16 -0800, Chris T-M
wrote:

Thanks Don, but I still get the function as Text. Is there any chance some
other part of my code could be effecting this? (I tried the .FORMULA=)

"Don Guillett" wrote:

Range("D87") = "=L4_Request!Q44"
Range("D87") .FORMULA= "=L4_Request!Q44"


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Chris T-M" wrote in message
...
I am using a master spreadsheet to collect data from several project
spreadsheets.

Some of the older project spreadsheets are missing the most recent data
cells, and I want to update the appropriate cells via a macro.

after opening the old file from my master spreadsheet...

Sheets("REPORTING").Select
Range("B87") = "Abv from L4 Request"
Range("D87") = "=L4_Request!Q44"

The second cell ends up as text. I need it to work as a function.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro newbie - simple copy/paste function Nat Excel Programming 2 August 16th 06 05:37 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
Macro to Paste to specific line, and continue to Paste each time on next row not over tomkarakowski[_2_] Excel Programming 1 May 28th 04 06:50 PM
Paste Function in Macro Kate Excel Programming 2 February 23rd 04 05:42 PM


All times are GMT +1. The time now is 10:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"