Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Delete an Item in a list box

Is it possible to select a line in a textbox and the delete it using vba. I
would like to simulate the user clicking a row in a textbox and then
entering the delete key? The textbox is not on a 'form' but rather on the
spreadsheet. Does it matter?

The textbox was loaded using something like.

If TextBox1.CanPaste = True Then
TextBox1.WordWrap = False
TextBox1.MultiLine = True
TextBox1.ScrollBars = fmScrollBarsBoth
TextBox1.Text = ""
TextBox1.Paste
end if
Thank you,
Fred Jacobowitz


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Delete an Item in a list box

Sorry - Subject should read - Delete an Item in a text box
"Fred Jacobowitz" wrote in message
...
Is it possible to select a line in a textbox and the delete it using vba.
I would like to simulate the user clicking a row in a textbox and then
entering the delete key? The textbox is not on a 'form' but rather on the
spreadsheet. Does it matter?

The textbox was loaded using something like.

If TextBox1.CanPaste = True Then
TextBox1.WordWrap = False
TextBox1.MultiLine = True
TextBox1.ScrollBars = fmScrollBarsBoth
TextBox1.Text = ""
TextBox1.Paste
end if
Thank you,
Fred Jacobowitz



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Delete an Item in a list box

Try looking at selection, or active selection,
textbox1.seltext.delete ? might work, be somthing like this there is
also CurLine prop. might be able to do something with that.

"Fred Jacobowitz" wrote in message ...
Sorry - Subject should read - Delete an Item in a text box
"Fred Jacobowitz" wrote in message
...
Is it possible to select a line in a textbox and the delete it using vba.
I would like to simulate the user clicking a row in a textbox and then
entering the delete key? The textbox is not on a 'form' but rather on the
spreadsheet. Does it matter?

The textbox was loaded using something like.

If TextBox1.CanPaste = True Then
TextBox1.WordWrap = False
TextBox1.MultiLine = True
TextBox1.ScrollBars = fmScrollBarsBoth
TextBox1.Text = ""
TextBox1.Paste
end if
Thank you,
Fred Jacobowitz

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
I need to pair each item on one list to each item on another list Peter R. Excel Worksheet Functions 1 August 24th 07 03:04 AM
Dropdown List - list item endings not visible if column too narrow AK9955 Excel Discussion (Misc queries) 2 April 27th 07 09:02 AM
how to delete 1 item in colum jarcher06 Excel Discussion (Misc queries) 2 March 18th 07 09:11 PM
How do I delete a character from a list of item numbers? TIANA Excel Worksheet Functions 3 May 9th 05 04:08 PM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM


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