Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this code which copies data input from 'Adhoc' worksheets cells G9:G15
and copies them onto next available row in 'database' worksheet, column A Sub copydata() Application.ScreenUpdating = False Sheets("Adhoc").Range("G9:G15").Copy Sheets("database").Select Range("A65536").End(xlUp).Activate PasteSpecial = xlValues Sheets("Adhoc").Activate Range("G9:G15").ClearContents Range("G9").Select MsgBox "Copied to Database Sheet" Application.ScreenUpdating = True End Sub However when I try it, the following bit is highlighted yellow PasteSpecial = xlValues and a 'compile error' - Expected function or variable as I'm the novice (but getting better) anybody fix it for me ?? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complie Error- Argument not optional | Excel Programming | |||
Complie Error Help | Excel Programming | |||
complie error | Excel Programming | |||
Complie Error | Excel Programming | |||
Variable produces a complie error | Excel Programming |