Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm wondering if anyone can help. I'm writing code in VBA in Excel to copy only the data validation from a selected line in one workbook to a range in another workbook. When i use my code it brings the error message: "Paste Special Method of range class failed" My code is as below: Windows(file2).Activate Rows("3:3").Select Selection.Copy Windows(File).Activate Range(Cells(1, 1), Cells(400, 13)).Select Selection.PasteSpecial Paste:=xlDataValidation, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False I've looked in the Excel help, and this says that 'xlDataValidation' is not an option for PasteSpecial. There must be a way to only paste the validation! Any help would be appreciated. Jarred. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom data validation on cells with data validation values | Excel Worksheet Functions | |||
copying data validation to another workbook | Excel Discussion (Misc queries) | |||
Excel 2000 - copying/pasting formula for validation purposes | Excel Discussion (Misc queries) | |||
Validation fails on copying | Excel Discussion (Misc queries) | |||
Copying data down to next dirty cell, then copying that data | Excel Programming |