Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Listbox Column RightAlign with RowSource.ExcelRange

I have a ListBox that is tied to an excel range using RowSource. I saw a
post here that had a subroutine that Aligned a ListBox column. The problem
is that it used the .List(row,col) property to change the listbox cell with
the aligned data. I'm getting an "Access Denied" error on trying to set the
..List property. I'm pretty sure this is because it is linked to the Excel
rows.

Is there an alternate method to right-aligning data in a ListBox column
linked to an Excel Range. The data in the Excel range is numeric and
formatted using Excel formatting.

inTHANKSadvance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Listbox Column RightAlign with RowSource.ExcelRange

Not sure what you saw, but to the best of my knowledge, there are no
commands for aligning a column in a listbox. the best you can do is pad
the data to achieve the effect.

--
Regards,
Tom Ogilvy

"Jim Zeeb" wrote in message
...
I have a ListBox that is tied to an excel range using RowSource. I saw a
post here that had a subroutine that Aligned a ListBox column. The

problem
is that it used the .List(row,col) property to change the listbox cell

with
the aligned data. I'm getting an "Access Denied" error on trying to set

the
.List property. I'm pretty sure this is because it is linked to the Excel
rows.

Is there an alternate method to right-aligning data in a ListBox column
linked to an Excel Range. The data in the Excel range is numeric and
formatted using Excel formatting.

inTHANKSadvance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Listbox Column RightAlign with RowSource.ExcelRange

Hi Jim,

I am not sure I understand your problem. The display of the List box is
already aligned into separate columns when you provide a row source property.
For instance set the row source to Sheet1!J4:K8 and the display will be
aligned into two columns. Am I missing something?

Alok Joshi

"Jim Zeeb" wrote:

I have a ListBox that is tied to an excel range using RowSource. I saw a
post here that had a subroutine that Aligned a ListBox column. The problem
is that it used the .List(row,col) property to change the listbox cell with
the aligned data. I'm getting an "Access Denied" error on trying to set the
.List property. I'm pretty sure this is because it is linked to the Excel
rows.

Is there an alternate method to right-aligning data in a ListBox column
linked to an Excel Range. The data in the Excel range is numeric and
formatted using Excel formatting.

inTHANKSadvance

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Listbox Column RightAlign with RowSource.ExcelRange

Jim,
Ignore my earlier post. I re-read your question and it is clear to me what
your problem is. I do not have a solution.
Alok Joshi

"Jim Zeeb" wrote:

I have a ListBox that is tied to an excel range using RowSource. I saw a
post here that had a subroutine that Aligned a ListBox column. The problem
is that it used the .List(row,col) property to change the listbox cell with
the aligned data. I'm getting an "Access Denied" error on trying to set the
.List property. I'm pretty sure this is because it is linked to the Excel
rows.

Is there an alternate method to right-aligning data in a ListBox column
linked to an Excel Range. The data in the Excel range is numeric and
formatted using Excel formatting.

inTHANKSadvance

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Listbox Column RightAlign with RowSource.ExcelRange

from the properties window of the listbox select textalign and then select #3
--
Jim at Eagle


"Jim Zeeb" wrote:

I have a ListBox that is tied to an excel range using RowSource. I saw a
post here that had a subroutine that Aligned a ListBox column. The problem
is that it used the .List(row,col) property to change the listbox cell with
the aligned data. I'm getting an "Access Denied" error on trying to set the
.List property. I'm pretty sure this is because it is linked to the Excel
rows.

Is there an alternate method to right-aligning data in a ListBox column
linked to an Excel Range. The data in the Excel range is numeric and
formatted using Excel formatting.

inTHANKSadvance

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
Listbox.RowSource problem Tim Coddington Excel Programming 8 January 8th 05 11:09 PM
RowSource in ListBox aet-inc[_2_] Excel Programming 1 December 3rd 03 12:41 AM
listbox rightalign jim c. Excel Programming 0 October 12th 03 11:06 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
listbox rowsource Christy[_2_] Excel Programming 4 September 20th 03 11:44 PM


All times are GMT +1. The time now is 07:02 AM.

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"