Hello. Macro beginning here. I copied the following code and ran it.
However, when I ran it, it said Compile Error: Expected Function or variable. How do I correct this?![]()
Please Login or Register to view this content.
Hello. Macro beginning here. I copied the following code and ran it.
However, when I ran it, it said Compile Error: Expected Function or variable. How do I correct this?![]()
Please Login or Register to view this content.
Last edited by Leith Ross; 05-20-2013 at 07:25 PM. Reason: Added Code Tags
Hi amartino44,
Try this:
HTH![]()
Please Login or Register to view this content.
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
Thanks. But my question is, why my code wrong (it's an example from a book I'm reading)
Hello amartino44,
There is a typo. There is period missing between Selection and Copy. Here is the corrected code...
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Thank ye kindly.
Hello amartino44,
You're welcome. Warn't no trouble t'all. Can we mark this solved?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks