Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Copy & Paste
1. Set sourceRange = mybook.Worksheets(1).Range("A1:L60")
2. Set destrange = basebook.Worksheets("Form temp").Range("A1") 3. sourceRange.Copy destrange How can I change statement 3. above to copy and paste only values and number format? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Copy & Paste
SourceRange.Copy
destrange.Select Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False Regards, Stefi €žnc€ ezt Ã*rta: 1. Set sourceRange = mybook.Worksheets(1).Range("A1:L60") 2. Set destrange = basebook.Worksheets("Form temp").Range("A1") 3. sourceRange.Copy destrange How can I change statement 3. above to copy and paste only values and number format? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Copy & Paste
Thanks Stefi.
Does this mean I cannot simplify the statement to 3. sourceRange.Copy destrange PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False "Stefi" wrote: SourceRange.Copy destrange.Select Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False Regards, Stefi €žnc€ ezt Ã*rta: 1. Set sourceRange = mybook.Worksheets(1).Range("A1:L60") 2. Set destrange = basebook.Worksheets("Form temp").Range("A1") 3. sourceRange.Copy destrange How can I change statement 3. above to copy and paste only values and number format? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Copy & Paste
You can't! PasteSpecial works only from the clipboard!
Stefi €žnc€ ezt Ã*rta: Thanks Stefi. Does this mean I cannot simplify the statement to 3. sourceRange.Copy destrange PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False "Stefi" wrote: SourceRange.Copy destrange.Select Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _ xlNone, SkipBlanks:=False, Transpose:=False Regards, Stefi €žnc€ ezt Ã*rta: 1. Set sourceRange = mybook.Worksheets(1).Range("A1:L60") 2. Set destrange = basebook.Worksheets("Form temp").Range("A1") 3. sourceRange.Copy destrange How can I change statement 3. above to copy and paste only values and number format? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Copy, paste without file name referenced after paste | Excel Discussion (Misc queries) | |||
Copy; Paste; Paste Special are disabled | Excel Discussion (Misc queries) | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
I cannot paste from one workbook to another. Copy works, paste do. | Excel Discussion (Misc queries) |