Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to fix/upgrade .sort in Excel 2007

Hi.

I have a nice little macro that was activated when I pressed a button
in my Excel worksheet:
This command was part of the worksheet and it worked like a charm in
Excel XP.
I upgrade to Excel 2007, and not I get a runtime error.

The code was:
Private Sub CommandButton8_Click()
sort "SquadRow", xlAscending
End Sub

The Error I get is: Compile Error, Invalid use of property.

How should I fix my code to run in Excel 2007.

Thanks for the help,
Ofer

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default How to fix/upgrade .sort in Excel 2007


It appears you didn't get all of the XP code copied over to 07.
The code you posted won't work in any XL version.
It should look something like...
Range("B5:D50").Sort Range("C5")
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



wrote in message
Hi.
I have a nice little macro that was activated when I pressed a button
in my Excel worksheet:
This command was part of the worksheet and it worked like a charm in
Excel XP.
I upgrade to Excel 2007, and not I get a runtime error.

The code was:
Private Sub CommandButton8_Click()
sort "SquadRow", xlAscending
End Sub

The Error I get is: Compile Error, Invalid use of property.
How should I fix my code to run in Excel 2007.
Thanks for the help,
Ofer

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
Upgrade to EXCEL 2007 Problem trip_to_tokyo[_2_] Setting up and Configuration of Excel 5 July 6th 09 10:04 AM
Excel Upgrade to 2007 Questions Karin Excel Discussion (Misc queries) 2 November 12th 08 08:06 PM
MS Query problem after upgrade to MS Excel 2007 Sam Excel Discussion (Misc queries) 0 December 13th 07 08:47 AM
confusion about upgrade to excel 2007 J. DeHullu Setting up and Configuration of Excel 1 September 29th 07 08:44 AM
To upgrade excel 2007 anil Excel Discussion (Misc queries) 2 May 2nd 07 02:34 PM


All times are GMT +1. The time now is 04:00 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"