Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please help, I need this code to work.
The msgbox is fine but I need it on paer and in other cells but it will not copy Only the copy command fails, the other code works ok. Sub Macro1() 'cell c6 contains the text "This bit" myvar = Range("C6").Text Selection.Copy mytext = myvar & " Works " & Trim$(215) & " days each year" MsgBox mytext ' I want to copy the string mytext into clipboard mytext.Copy ' but that command fails Range("D15").Select ActiveSheet.Paste End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
I have Error 1919 Error Configuring ODBC dataSource Database | Excel Discussion (Misc queries) | |||
Error 50290: Error writing to Worksheet while using an ActiveX Control | Excel Programming |