#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ColumnWidth

I wrote a macro using Excel 9.0 that uses the ColumnWidth
property. If I try to run the macro in Excel 10.0 it does
not work.

Does anyone know what the problem might be?

Thanks in advance!

Dwight
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default ColumnWidth

It always helps to post YOUR code for comments

--
Don Guillett
SalesAid Software

"Dwight" wrote in message
...
I wrote a macro using Excel 9.0 that uses the ColumnWidth
property. If I try to run the macro in Excel 10.0 it does
not work.

Does anyone know what the problem might be?

Thanks in advance!

Dwight



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default ColumnWidth

Here is a sample of the code:

Sheets("Assignments").Select
ActiveCell.SpecialCells(xlLastCell).Select
strCellRow = ActiveCell.Row + 1
Range("a" & strCellRow).Select
ActiveCell.FormulaR1C1 = strAssignmentFrom
AlignDates
Range("b" & strCellRow).Select
ActiveCell.FormulaR1C1 = strAssignmentTo
AlignDates
Range("c" & strCellRow).Select
ActiveCell.FormulaR1C1 = strAssignment
Result = Application.WorksheetFunction.Substitute
(tbAssignment.Value, Chr(13), "")
ActiveCell.Value = Result

lbAssignment.ColumnCount = 3
lbAssignment.RowSource = Trim("a2:c80")

lbAssignment.ControlSource = Trim("g1")
lbAssignment.ColumnWidths = "1.7 in;.6 in; 6 in"
'Place the ListIndex into cell e3
lbAssignment.BoundColumn = 0
Range("g1").Select
Selection.ClearContents

tbDutyStatus = ""
tbAssignmentFrom = ""
tbAssignmentTo = ""
tbAssignment = ""
cbDutyStatus = False
tbAssignmentFrom.SetFocus
ActiveWorkbook.Save

-----Original Message-----
It always helps to post YOUR code for comments

--
Don Guillett
SalesAid Software

"Dwight" wrote in

message
...
I wrote a macro using Excel 9.0 that uses the

ColumnWidth
property. If I try to run the macro in Excel 10.0 it

does
not work.

Does anyone know what the problem might be?

Thanks in advance!

Dwight



.

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
Columnwidth Jean-Paul Excel Discussion (Misc queries) 1 November 24th 09 02:21 PM
Columnwidth changes-Event Tom Excel Programming 3 February 16th 04 03:36 PM
Selection.ColumnWidth Ron McCormick[_2_] Excel Programming 2 December 29th 03 11:41 AM
ColumnWidth not working... BEE Excel Programming 2 December 19th 03 06:29 PM
Columnwidth of a merged cell Jos Vens Excel Programming 2 November 9th 03 11:19 AM


All times are GMT +1. The time now is 12:42 PM.

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

About Us

"It's about Microsoft Excel"