Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Input form question

I have a Form made from a worksheet I plan on using it to
add information to my datasheet.

Column B has dates for every day of the year.

Formatted dd/mmm/yy

On the form I have a fixed refrence of the column letter
as this will always be the same so the information under
m3 feed will always be column E row ? for the entry to go
into.

The row number to decide the cell the information should
go into is decided by matching a date cell on the
worksheet form to the row in column b.

How can I code this into my worksheet?

Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Input form question

=match(Address of Cell with date to be found,B:B,0) (B:B is column with
dates)

gives the row

Perhaps you can combine the with indirect

=Indirect("E" & match(Cell with date,B:B,0))

Qualify cell locations with worksheet names where appropriate.

--
Regards,
Tom Ogilvy


"Rob Hargreaves" wrote in message
...
I have a Form made from a worksheet I plan on using it to
add information to my datasheet.

Column B has dates for every day of the year.

Formatted dd/mmm/yy

On the form I have a fixed refrence of the column letter
as this will always be the same so the information under
m3 feed will always be column E row ? for the entry to go
into.

The row number to decide the cell the information should
go into is decided by matching a date cell on the
worksheet form to the row in column b.

How can I code this into my worksheet?

Rob



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Input form question

Thanks - something like this?

So if I have a button on my worksheet form and I put -

Sub EnterData_Click()

'Paste textbox A contents into
=Indirect("E" & match(D6,B:B,0))

'Paste textbox B contents into
=Indirect("F" & match(D6,B:B,0))

'Paste textbox C contents into
=Indirect("G" & match(D6,B:B,0))

End Sub

-----Original Message-----
=match(Address of Cell with date to be found,B:B,0)

(B:B is column with
dates)

gives the row

Perhaps you can combine the with indirect

=Indirect("E" & match(Cell with date,B:B,0))

Qualify cell locations with worksheet names where

appropriate.

--
Regards,
Tom Ogilvy


"Rob Hargreaves"

wrote in message
...
I have a Form made from a worksheet I plan on using it

to
add information to my datasheet.

Column B has dates for every day of the year.

Formatted dd/mmm/yy

On the form I have a fixed refrence of the column

letter
as this will always be the same so the information

under
m3 feed will always be column E row ? for the entry to

go
into.

The row number to decide the cell the information

should
go into is decided by matching a date cell on the
worksheet form to the row in column b.

How can I code this into my worksheet?

Rob



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Input form question

My best guess would be:

set rng = Range("E" & application.Match(Range("D6"),Range("B:B"),0))
rng.Value = TextboxA.Text

similar for the others.

--
Regards,
Tom Ogilvy

wrote in message
...
Thanks - something like this?

So if I have a button on my worksheet form and I put -

Sub EnterData_Click()

'Paste textbox A contents into
=Indirect("E" & match(D6,B:B,0))

'Paste textbox B contents into
=Indirect("F" & match(D6,B:B,0))

'Paste textbox C contents into
=Indirect("G" & match(D6,B:B,0))

End Sub

-----Original Message-----
=match(Address of Cell with date to be found,B:B,0)

(B:B is column with
dates)

gives the row

Perhaps you can combine the with indirect

=Indirect("E" & match(Cell with date,B:B,0))

Qualify cell locations with worksheet names where

appropriate.

--
Regards,
Tom Ogilvy


"Rob Hargreaves"

wrote in message
...
I have a Form made from a worksheet I plan on using it

to
add information to my datasheet.

Column B has dates for every day of the year.

Formatted dd/mmm/yy

On the form I have a fixed refrence of the column

letter
as this will always be the same so the information

under
m3 feed will always be column E row ? for the entry to

go
into.

The row number to decide the cell the information

should
go into is decided by matching a date cell on the
worksheet form to the row in column b.

How can I code this into my worksheet?

Rob



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Input form question

Ive been trying this- I hope I am nearly there I really
do appreciate this.

"E" being fixed column for first textbox which is
actually a cell on a worksheet at D8, D6 is where the
date is on the worksheet.

Dim Rng As Range

Set Rng = Range("E" & Application.Match(Range("D6"), Range
("B:B"), 0))
Rng.Value = Application.Worksheets("Daily").Range
("D8").Text

'D8.Text

-----Original Message-----
My best guess would be:

set rng = Range("E" & application.Match(Range("D6"),Range

("B:B"),0))
rng.Value = TextboxA.Text

similar for the others.

--
Regards,
Tom Ogilvy

wrote in message
...
Thanks - something like this?

So if I have a button on my worksheet form and I put -

Sub EnterData_Click()

'Paste textbox A contents into
=Indirect("E" & match(D6,B:B,0))

'Paste textbox B contents into
=Indirect("F" & match(D6,B:B,0))

'Paste textbox C contents into
=Indirect("G" & match(D6,B:B,0))

End Sub

-----Original Message-----
=match(Address of Cell with date to be found,B:B,0)

(B:B is column with
dates)

gives the row

Perhaps you can combine the with indirect

=Indirect("E" & match(Cell with date,B:B,0))

Qualify cell locations with worksheet names where

appropriate.

--
Regards,
Tom Ogilvy


"Rob Hargreaves"

wrote in message
...
I have a Form made from a worksheet I plan on using

it
to
add information to my datasheet.

Column B has dates for every day of the year.

Formatted dd/mmm/yy

On the form I have a fixed refrence of the column

letter
as this will always be the same so the information

under
m3 feed will always be column E row ? for the entry

to
go
into.

The row number to decide the cell the information

should
go into is decided by matching a date cell on the
worksheet form to the row in column b.

How can I code this into my worksheet?

Rob


.



.

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
First Input on a Form JayW Excel Worksheet Functions 0 June 13th 07 09:33 AM
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 can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
input form G[_5_] Excel Programming 1 January 19th 04 07:55 PM
Input box/form acsell Excel Programming 11 October 9th 03 11:22 AM


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