Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Why "expected function" on such basic VB?

Howdie,

Why do I get error "expected function"with this simple vb..?

Sheets("abc").Select
Cells.Select
selection.Clear

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Why "expected function" on such basic VB?

perhaps during compilation of ur code a function is expected in any other
place ? Do you use option explicit directive and you compiled manually ur
code before u run the macro ?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Why "expected function" on such basic VB?



Thanks, I worked it out!

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Why "expected function" on such basic VB?

Hi

Adding, don't select and activate, it is unnecessary and slow in at least
99% of the cases. Just write

Sheets("abc").Cells.Clear

it runs invisible and fast, and your working environment doesn't change.

HTH. Best wishes Harald

"Darin Kramer" skrev i melding
...


Thanks, I worked it out!

*** Sent via Developersdex http://www.developersdex.com ***



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Please add a "sheet" function like "row" and "column" functions Spreadsheet Monkey Excel Programming 2 November 8th 05 04:08 PM
Visual basic unlock "SORT" function in an EXCEL spreadsheet Jetty Excel Programming 4 July 1st 05 07:43 PM
visual basic example of the defunct "Extract" function in Excel 4. Canuckle Head Excel Programming 1 December 29th 04 04:38 AM
Please help - expected record status "missing" Hilton Excel Programming 1 October 14th 04 12:13 PM


All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"