PC Review


Reply
Thread Tools Rate Thread

All help is worthy

 
 
Robert@thompson6.wanadoo.co.uk
Guest
Posts: n/a
 
      7th Dec 2006
I have set up a simple database in excel, using barcodes (i found this
easier to scan and lookup, than access) plus the people working with
this will find it simple to use. I have however reached a giant full
stop.
The database is pulled from Dave Peterson's update log worksheet, which
works very well, the problems is that on a lookup sheet( using Vlookup
) where the user scans the barcode it will pull all info from the
"database" sheet in reference to the barcode, ie: barcode number,
surname,forename,address, early greenfees purchased,mid purchased,late.
Is it possible to manipulate early, mid and late and return the new
values to overwrite the existing?
Any help will be thankful

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      8th Dec 2006
Robert,

You could use code like this to store your modified data. With a cell selected on the row with the
modified data, and the key in column A, and your Database on a sheet named DataBase:

Dim myRow As Long

With Worksheets("DataBase")
myRow = Application.Match(Cells(ActiveCell.Row,1).Value, .Range("A:A"), False)
.Cells(myRow,2).Value = Cells(ActiveCell.Row,2).Value
.Cells(myRow,3).Value = Cells(ActiveCell.Row,3).Value
.Cells(myRow,4).Value = Cells(ActiveCell.Row,4).Value
'Etc...
End With

Of course, you might need to format the data, and use error checking, etc.
to tell when you are modifying existing data versus adding new data...

HTH,
Bernie
MS Excel MVP


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have set up a simple database in excel, using barcodes (i found this
> easier to scan and lookup, than access) plus the people working with
> this will find it simple to use. I have however reached a giant full
> stop.
> The database is pulled from Dave Peterson's update log worksheet, which
> works very well, the problems is that on a lookup sheet( using Vlookup
> ) where the user scans the barcode it will pull all info from the
> "database" sheet in reference to the barcode, ie: barcode number,
> surname,forename,address, early greenfees purchased,mid purchased,late.
> Is it possible to manipulate early, mid and late and return the new
> values to overwrite the existing?
> Any help will be thankful
>



 
Reply With Quote
 
Robert@thompson6.wanadoo.co.uk
Guest
Posts: n/a
 
      11th Dec 2006
Thanks Bernie
this code is great
thank you

Bernie Deitrick wrote:

> Robert,
>
> You could use code like this to store your modified data. With a cell selected on the row with the
> modified data, and the key in column A, and your Database on a sheet named DataBase:
>
> Dim myRow As Long
>
> With Worksheets("DataBase")
> myRow = Application.Match(Cells(ActiveCell.Row,1).Value, .Range("A:A"), False)
> .Cells(myRow,2).Value = Cells(ActiveCell.Row,2).Value
> .Cells(myRow,3).Value = Cells(ActiveCell.Row,3).Value
> .Cells(myRow,4).Value = Cells(ActiveCell.Row,4).Value
> 'Etc...
> End With
>
> Of course, you might need to format the data, and use error checking, etc.
> to tell when you are modifying existing data versus adding new data...
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I have set up a simple database in excel, using barcodes (i found this
> > easier to scan and lookup, than access) plus the people working with
> > this will find it simple to use. I have however reached a giant full
> > stop.
> > The database is pulled from Dave Peterson's update log worksheet, which
> > works very well, the problems is that on a lookup sheet( using Vlookup
> > ) where the user scans the barcode it will pull all info from the
> > "database" sheet in reference to the barcode, ie: barcode number,
> > surname,forename,address, early greenfees purchased,mid purchased,late.
> > Is it possible to manipulate early, mid and late and return the new
> > values to overwrite the existing?
> > Any help will be thankful
> >


 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      11th Dec 2006
> Thanks Bernie
> this code is great
> thank you


Glad you liked it, and thanks for letting me know.

Bernie
MS Excel MVP


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What, to be a worthy upgrade to an XP 2800 Barton Joe Computer Hardware 3 12th Dec 2005 11:07 AM
Old PC's to a worthy cause Skavenger Computer Hardware 3 10th Oct 2005 12:09 PM
Exchange Worthy? DasherDown DIY PC 11 9th Mar 2005 06:41 PM
ATI Radeon 9800 a worthy card? Rev Marc ATI Video Cards 36 27th Oct 2003 04:36 PM
Road worthy hard drives Bruce T. Berger Storage Devices 4 7th Sep 2003 10:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:58 AM.