#1   Report Post  
Posted to microsoft.public.excel.programming
sdm sdm is offline
external usenet poster
 
Posts: 1
Default "Dumb copy"


Hi;

This may be a solve in code or without code.. (i can read the code fro
the macro generator then.).

The situation is as follows; Excel 2000.
-
File1
Sheet1 = Sheet1
Sheet2 = Test
Sheet3 = Sheet3

Test!b1 = 10
Sheet1!b1 = =Test!b1


File2
Sheet1 = Sheet1
Sheet2 = Test
Sheet3 = Sheet3
-
Now.. I copy [File1]Sheet1!b1
I go to [File2]Sheet1!b1 and I paste.

I now get:
=[File1]test!B1 as a result in that cell.
I DO NOT WANT THIS. I ONLY WANT: =TEST!B

How do I prevent excel from being too smart and copying filenames i
forumale references? I'll have to put it in code.. but click thourg
instructions will do too. Thanks

sd
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message381926.htm


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default "Dumb copy"

Hi,

have you tried copying test!b1.value?

it will only copy the value you have rather than the
formulae.

Rob
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default "Dumb copy"

References to workbook and worksheets are always absolute so maybe
copy/paste isn't a good answer. You can set one cell's formula equal to
another:

Workbooks("Book1.xls").Worksheets("Sheet1").Range( "B1").Formula = _
Workbooks("Book2.xls").Worksheets("Sheet1").Range( "B1").Formula


--
Jim Rech
Excel MVP


  #5   Report Post  
Posted to microsoft.public.excel.programming
sdm sdm is offline
external usenet poster
 
Posts: 1
Default "Dumb copy"


Hmm.. I'm afraid the situation is a little more complex.

The top of the sheet consists out of data which is taken from
database. This is refeshed every day.

The bottom part of the excel sheet is a range() copy from a histori
sheet to the new sheet.

(file: [Fin001.xls] and historic file [040211Fin001.xls])

It is a macro which copies this data from some 500 files..

Sometimes users make referenses to other sheets within their workboo
when adding notes. When the macro copies the historic information,
get the error I described earlier.

The fields point at an external-file cell, instead of the cell on th
other worksheet.

(For an easy example: I copy rows 50-180 from sheet 1 and 2 from th
historic workbook (with notes) to the workbook with sheet 1 and 2 a
rows 50-180)
I do this for

sd
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message381926.htm




  #6   Report Post  
Posted to microsoft.public.excel.programming
sdm sdm is offline
external usenet poster
 
Posts: 1
Default "Dumb copy"


hmm.. That would copy only one cell;
I have to copy a range..
Range(A60:H160) to the second sheet.

I'm trying to run some tests with it now

sd
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message382341.htm


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
Selecting "Save As" adds "Copy of" to file name- MS Excel 2007 ronhansen Excel Discussion (Misc queries) 1 November 15th 09 09:33 PM
Shortcut to switch from "fill down" to "copy" with mouse drag RJ Dake Excel Discussion (Misc queries) 3 August 13th 09 05:35 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel "Move or Copy" and "Delete" sheet functions dsiama Excel Worksheet Functions 1 December 28th 07 01:57 PM
problem with Linking workbooks via "copy" and "paste link" Arkitek Excel Discussion (Misc queries) 0 December 19th 06 10:03 PM


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

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

About Us

"It's about Microsoft Excel"