LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel VBA User Form - button problem

Private Sub CommandButton1_Click()
do while activeCell.Value < ""
ActiveCell.Offset(1,0).Select
Loop
ActiveCell.Value = me.Listbox1.Value
End Sub

--
Regards,
Tom Ogilvy



"weakissues " wrote in message
...
How can I create a command button that when pressed adds text or a value
into a worksheet cell, but skips full cells until it gets to the next
empty one to put it in. I am creating an EPOS system and a listbox on
the form will display a specific cell range, but i want the button to
add say SOUP if soup is clicked, but then is MUSHROOMS is clicked, it
adds it to the next cell down (skipping the cell which will have SOUP
in it). Please help, this has been driving me crazy all week, i cant
think how to do it at all. Thanks a lot. Cuz


---
Message posted from http://www.ExcelForum.com/



 
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
User form and Command button Marilyn Excel Discussion (Misc queries) 3 May 9th 07 12:50 AM
use a button to open a user form? Hru48 Excel Discussion (Misc queries) 1 September 1st 05 07:41 PM
A "previous" button on a user form Anthony Slater Excel Discussion (Misc queries) 3 November 29th 04 05:57 PM
Excel VBA - User form caption problem xlnoobie Excel Programming 2 February 7th 04 06:21 PM
Excel User Form problem humet Excel Programming 5 December 11th 03 09:37 PM


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