LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Problems with Selection

I have a macro which populate a worsheet from AutoCAD thru automation. It
worked fine before upgrading to Office 2007. Now it is almost always failing
when I use the selection object to format the cells, for example

WSheet.Range("A1:" & Col & "1").Select

With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Font.Name = "Arial"
.Font.FontStyle = "Bold"
.Font.Size = 10
End With

some times this code works and other times fails. I can't find information
about the selection object. Can someone suggest a better way of doing this?
Thanks.
 
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
Cell selection problems in Excel Bill in Maine Excel Discussion (Misc queries) 1 June 18th 09 05:50 AM
Copy Selection - Paste Selection - Delete Selection Uninvisible Excel Programming 2 October 25th 07 01:31 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Linest function: data selection problems NathanG Excel Worksheet Functions 1 August 26th 05 04:12 PM
autofilter/cell selection problems Jordan Excel Programming 3 July 20th 05 04:16 PM


All times are GMT +1. The time now is 09:08 AM.

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"