Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Range issue

Status
Not open for further replies.

Turtleman10

Technical User
Sep 13, 2012
40
US
I'm starting to play around with VBA in Excel and of course the first macro I write is Range("B3").Select which should work no problem but I get Invalid outside procedure and it highlights the B3 What in the world could I be doing wrong? THis is about as simple a command as you can get.
 
The error message is quite self explanatory: you have to write code inside a procedure, ie a Function or a Sub ...
 
Nevermind it looks like there was something going on with my spreadsheet I closed Excel and opened a new workbook and all was fine. Go figure
 
Best way to get started is actually the macro recorder. Just know that it is highly inefficient. :)

Zack

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP?
- Leonardo da Vinci
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top