Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Con someone kindly tell me how to modify the line of code below so that
instead of copying the contents, formatting, validation, etc. of a cell, it simply copies the cell's value? Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer) Thanks in advance for the help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Add Value
Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h).value _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer).value "Bob" wrote: Con someone kindly tell me how to modify the line of code below so that instead of copying the contents, formatting, validation, etc. of a cell, it simply copies the cell's value? Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer) Thanks in advance for the help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Joel,
Thanks for the help. Unfortunately, after I modified the code per your suggestion, I now get a "Compile error" message. Bob "Joel" wrote: Add Value Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h).value _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer).value "Bob" wrote: Con someone kindly tell me how to modify the line of code below so that instead of copying the contents, formatting, validation, etc. of a cell, it simply copies the cell's value? Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer) Thanks in advance for the help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Bob
Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h).Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer).PasteSpecial (xlPasteValues) HTH Cordially Pascal "Bob" a écrit dans le message de news: ... Con someone kindly tell me how to modify the line of code below so that instead of copying the contents, formatting, validation, etc. of a cell, it simply copies the cell's value? Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer) Thanks in advance for the help. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Pascal,
That did the trick! Thanks! Bob "papou" wrote: Hello Bob Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h).Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer).PasteSpecial (xlPasteValues) HTH Cordially Pascal "Bob" a écrit dans le message de news: ... Con someone kindly tell me how to modify the line of code below so that instead of copying the contents, formatting, validation, etc. of a cell, it simply copies the cell's value? Worksheets(Sheet1Name).Cells(Sheet1EmpTypeRowPoint er, h). _ Copy Worksheets(Sheet2Name).Cells(Sheet2RowPointer, _ Sheet2EmpTypeColPointer) Thanks in advance for the help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I catch a Paste action and default it to PasteSpecial-Values | Excel Programming | |||
PasteSpecial Paste:= xlPasteFormats problem | Excel Programming | |||
Paste vs PasteSpecial | Excel Programming | |||
paste negative time with PasteSpecial | Excel Programming | |||
PasteSpecial Paste:=ColumnWidths | Excel Programming |