Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Using Forms for Input

Thanks in advance for the feedback. I have VBA form that I've created to
display data to the screen using the following code (code only shows of few
of the columns of data being loaded to form).

Public Sub LoadLongInfo3(ByVal selectedProject As String)
Dim databaseRow As Long
Set reportsSheet = Sheets("Reports")
Set resultsSheet = Sheets("Results")
Set devdataSheet = Sheets("DevData")

'Find DataRows To Be Loaded Into Form
devdataSheet.Activate
devdataSheet.Cells.Find(What:=selectedProject,
After:=devdataSheet.Cells(1, 1), LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=True).Activate
databaseRow = ActiveCell.Row
'Load Data Into Form
lblConcept.Caption = devdataSheet.Cells(databaseRow, 5)
lblCity.Caption = devdataSheet.Cells(databaseRow, 7)
lblDevName.Caption = devdataSheet.Cells(databaseRow, 2)
lblMasterPlan.Caption = devdataSheet.Cells(databaseRow, 10)
lblSubmarket.Caption = devdataSheet.Cells(databaseRow, 8)
lblRegion.Caption = devdataSheet.Cells(databaseRow, 9)
lblTBM.Caption = devdataSheet.Cells(databaseRow, 16)
lblTBColRow.Caption = devdataSheet.Cells(databaseRow, 17)
lblZip.Caption = devdataSheet.Cells(databaseRow, 18)
lblLocation.Caption = devdataSheet.Cells(databaseRow, 19)
End Sub

To update the data I currently simply go to the datasheet and work my way
around it changing cells as need, however there are over 150 columns on the
sheet. Is there a way I can nodify this code to edit rows on the orignial
source datasheet?
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
How to input pictures automatically based on cell input? bsharp Excel Worksheet Functions 9 May 30th 09 07:16 AM
xls input forms on the web GMR in Mississippi! Excel Discussion (Misc queries) 0 December 19th 07 01:05 PM
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF ALex Excel Worksheet Functions 2 March 14th 05 09:19 PM


All times are GMT +1. The time now is 10:12 PM.

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"