Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Apologies, the problem was not neccesarily to do with the setting of
iRow1 but rather that you didn't use the correct row variable when inserting data onto the AT sheet: 'copy the data to the database ws.Cells(iRow, 1).Value = Me.LstNm.Value ws.Cells(iRow, 5).Value = Me.FrstNm.Value ws1.Cells(iRow, 2).Value = Me.LstNm.Value ws1.Cells(iRow, 6).Value = Me.FrstNm.Value newSheetName = ws.Cells(iRow, 1) & "," & ws.Cells(iRow, 5) should read 'copy the data to the database ws.Cells(iRow, 1).Value = Me.LstNm.Value ws.Cells(iRow, 5).Value = Me.FrstNm.Value ws1.Cells(iRow1, 2).Value = Me.LstNm.Value ws1.Cells(iRow1, 6).Value = Me.FrstNm.Value newSheetName = ws.Cells(iRow, 1) & "," & ws.Cells(iRow, 5) Regards Rowan oberon.black wrote: I have updated the code to with this. Code: -------------------- 'copy the data to the database ws.Cells(iRow, 1).Value = Me.LstNm.Value ws.Cells(iRow, 5).Value = Me.FrstNm.Value ws1.Cells(iRow, 2).Value = Me.LstNm.Value ws1.Cells(iRow, 6).Value = Me.FrstNm.Value newSheetName = ws.Cells(iRow, 1) & "," & ws.Cells(iRow, 5) -------------------- It puts the userform info into the 'AT' page butinstead of starting on 'B10' it starts on 'B12'. What do I need to do to fix this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excell error "Can't find Project or Library" Project VBAProject | Excel Worksheet Functions | |||
How to convert MS Project to MS Excel. I don't have MS Project. | Excel Discussion (Misc queries) | |||
HELP!!!! VBA Project Locked - Project Unviewable | Excel Programming | |||
Assigning the Help 4, *.HLP file for a project programmatically in a protected Project | Excel Programming | |||
Accesing vba project from wb that has vba project password protected | Excel Programming |