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: 1
Default use a txt.value on a form to search a sheet

I have this cmdbutton on a form
_______________________________________________
Private Sub CmdAdd_Click()
Application.ScreenUpdating = False
Set sourcewb = Workbooks.Open("path to workbook")

ActiveWorkbook.Sheets("1").Activate
Range("A1").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = txt1.Value
ActiveCell.Offset(0, 1) = txt2.Value
ActiveCell.Offset(0, 2) = txt3.Value

sourcewb.Close True

Unload Me

End Sub
________________________________________________

before closing the sourcewb i would like for the txt3.value to be foun
on sheet(2). if not, then another form needs to open to add txt3 t
sheet(2)

any help would be appreciated

--
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
Extend search results in a form Breezy Excel Worksheet Functions 0 March 8th 09 08:08 PM
Search Excel form (Formula?) Rob I Excel Worksheet Functions 5 September 5th 08 01:49 AM
Search form? nkoichev Excel Discussion (Misc queries) 0 July 5th 06 02:27 PM
search form in sheet peter via OfficeKB.com New Users to Excel 3 June 24th 05 11:10 PM
Creating a Search Form Karen Excel Discussion (Misc queries) 12 April 1st 05 07:02 AM


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