Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Entering Userform data to worksheet

Hi Guys,

I have a user form that I am hoping will simplify data entry onto a
large wooksheet.

The user form logs growth measurements. Individual measurements will
always be entered onto the worksheet in the same row (i.e. weight =
r12, height = r22, sitting height = r23). There are various
calculations inbetween data points in the column so data is not always
logged in consecutive rows.

However, the column that they need to go into depends on the number of
times they have been seen. For example if it was their first
assessment the worksheet column the data needs to go into would be N,
2nd visit O, 3rd visit P and so on.

So I have a textbox in the Userform to log visit number. This data
does not need to be entered on the worksheet, but I was hoping that it
could be used to define the column offset somehow.

Can anyone help me out with wiring some code for a userform to get
round this? I am really struggling!

Many thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Entering Userform data to worksheet

To write to cells you can either use Range("A1") or cells(RowNumber,
ColumnNumber). You probably need cells(23, VisitNumber + 2). You may or may
not need the PLUS value.

Or you could do this to find last column in row 1 (or any row)

LastCol = Cells(1,columns.Count).end(xltoleft).Column
Cells(23,LastCol) = Data

" wrote:

Hi Guys,

I have a user form that I am hoping will simplify data entry onto a
large wooksheet.

The user form logs growth measurements. Individual measurements will
always be entered onto the worksheet in the same row (i.e. weight =
r12, height = r22, sitting height = r23). There are various
calculations inbetween data points in the column so data is not always
logged in consecutive rows.

However, the column that they need to go into depends on the number of
times they have been seen. For example if it was their first
assessment the worksheet column the data needs to go into would be N,
2nd visit O, 3rd visit P and so on.

So I have a textbox in the Userform to log visit number. This data
does not need to be entered on the worksheet, but I was hoping that it
could be used to define the column offset somehow.

Can anyone help me out with wiring some code for a userform to get
round this? I am really struggling!

Many thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Entering Userform data to worksheet

Perfect! the cells() function works a dream!!

Thanks so much for your guidance Joel
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
Finding blank row and entering data in row from userform MAWII Excel Programming 3 June 12th 07 11:16 PM
Userform Entering Data to a spreadsheet nir020 Excel Programming 0 November 16th 06 06:40 PM
userform to search by entering data into a textbox Moh Excel Programming 3 September 13th 06 02:01 PM
Entering the same data on more than one worksheet Big-Fish Excel Worksheet Functions 2 February 9th 06 07:21 PM
Entering data into more than one worksheet artemisia[_3_] Excel Programming 7 May 16th 04 11:18 PM


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