LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Alec H
 
Posts: n/a
Default Pasting a value not a formula in a macro


Hi,

I have a macro that copies data from one sheet to another, the active
cells in the first spreadsheet are "overwritten" each time by the user
(who then uses them for another action) and the macro keeps a record of
these entries by copying them into another sheet that purely acts as a
"list". The list sheet uses a "next blank row" methodology and
functions well.

My problem is that when the macro copies the data it appears to copy
the formula relating to the date inputted by the user and not the
value. This results in all records showing whatever date is CURRENTLY
showing in the first sheet.....I want it to copy the value and then
when the next user overwrites the first sheet, it doesnt change the
second sheet.

My code is


Code:
--------------------

' Save filtered customers ids to diary

Sheets("Formulas").Select
Range("P5:P60").Select
Selection.Copy
Sheets("Stage 1 - Visit diary").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste

' Save visit date to diary

Sheets("Formulas").Select
Range("S5:S60").Select
Selection.Copy
Sheets("Stage 1 - Visit diary").Select
Range("K65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste

--------------------


Thanks


--
Alec H
------------------------------------------------------------------------
Alec H's Profile: http://www.excelforum.com/member.php...o&userid=31042
View this thread: http://www.excelforum.com/showthread...hreadid=515686

 
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
Relative cells in macro - and pasting a formula too! Excel Discussion (Misc queries) 3 February 23rd 06 02:46 PM
Macro Formula Corey Excel Discussion (Misc queries) 1 February 4th 06 06:13 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Trouble copying and pasting a formula Julie P. Excel Discussion (Misc queries) 6 March 4th 05 04:11 AM


All times are GMT +1. The time now is 09:38 PM.

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"