Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Search a column, enable input fields, save to row & columna, reset

I've designed an input form that will have the user search for a client by
their number. My goal is to have the code search a column, and if found,
enable about 6 input fields so the user can update the records. When they
click save, the fields are saved to the correct row & column and the input
fields are retuned to disabled.

The user will be searching for a number, and there is the possiblity that a
duplicate number may be present over time, so can the search be narrowed to
something like the last 30 days?

The search column is "C".

The columns to have the input data saved to are, J, K, M, O and P.

Sounds simple enough, however my attempts have failed at every turn.

Let me know if you need more clarification on this, and thank you in advance
for any help provided.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Search a column, enable input fields, save to row & columna, reset

Post the code and specify where the problems are. Here is some code from the
VBA help

With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With

"Mike "MrMunka" Gillingham" wrote:

I've designed an input form that will have the user search for a client by
their number. My goal is to have the code search a column, and if found,
enable about 6 input fields so the user can update the records. When they
click save, the fields are saved to the correct row & column and the input
fields are retuned to disabled.

The user will be searching for a number, and there is the possiblity that a
duplicate number may be present over time, so can the search be narrowed to
something like the last 30 days?

The search column is "C".

The columns to have the input data saved to are, J, K, M, O and P.

Sounds simple enough, however my attempts have failed at every turn.

Let me know if you need more clarification on this, and thank you in advance
for any help provided.

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
Enable / Disable User Form Fields Based on Input. Mike MrMunka Gillingham Excel Programming 2 September 9th 17 11:21 AM
Input one criteria to search in 5 fields Fanny Excel Discussion (Misc queries) 1 April 26th 06 04:11 AM
Reset data entry fields to 0 or nothing Bruce[_9_] Excel Programming 2 March 15th 06 01:46 AM
IF ColumnA = ltr Add Column B maril Excel Worksheet Functions 3 February 20th 06 09:36 PM
Adding new numbers as I type without duplicates from Sheet1,ColumnA to Sheet2,ColumnA Master Excel Worksheet Functions 2 July 12th 05 05:03 PM


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