Prev Previous Post   Next Post Next
  #1   Report Post  
Anthony
 
Posts: n/a
Default Code error ??

Hi
I have got this code which selects the contents of "MON" worksheet and
pastes it into the next available row in "LOG" worksheet.

The problem I have is that in the "MON" worksheet, Column A is populated by
a formula and when I select the macro to paste the data into the "LOG"
worksheet a '0' value is shown for column A .

How can I get the macro to select the cells and paste the data without
pasting any formula - just the results ???
Hope I haven't confused anybody - and thanks for ur help

The code:


Sub test()
'
Range("A8:N34").Select
Selection.Copy
Sheets("Log").Select
Range("A4").Select
ActiveSheet.Paste
Range("E11").Select
Application.Run "'Lost Prop.xls'!Clear"
Sheets("Mon").Select
Range("B14").Select
End Sub

Anthony
 
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
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Findlink Error D Moniz via OfficeKB.com Links and Linking in Excel 0 January 20th 05 04:53 PM
Error when entering and exiting excel Randy Excel Discussion (Misc queries) 1 January 11th 05 03:17 PM
Error on worksheet delete VanS Excel Worksheet Functions 0 November 19th 04 09:07 PM


All times are GMT +1. The time now is 11:44 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"