[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

correct syntax?

What is the correct syntax?


This is in Excel VB.

Dim mysheet As "activeworksheet"
0
ca1358
Asked:
ca1358
  • 4
1 Solution
 
GrahamSkanCommented:
Dim mysheet As Worksheet
set MySheet = ActiveWorksheet
0
 
GrahamSkanCommented:
Typo. Should be

set MySheet = ActiveSheet
0
 
ca1358Author Commented:
Thank you!
0
 
GrahamSkanCommented:
That must be the quickest acceptance ever. I realised my error as soon as I hit Submit, but I'm a slow typist.
0
 
GrahamSkanCommented:
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now