Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default populate form from where the cursor is

found a solution with much muddling around - here it is (and yes, it works!)
Sub OnHoldForm() 'Completes the form using text from the Hold Request Row'
On Error GoTo ErrorHandler

Dim sourceWS As Worksheet
Dim rg As Long
Set sourceWS = Sheets("Register")
Worksheets("On Hold").Activate
Set mycell = Application.InputBox( _
prompt:="Go to the Register & place cursor on the Hold Request# you wish
to print (Column A)", Type:=8)
With mycell
Range("B9").Value = sourceWS.Cells(.Row, 6).Text
Range("E9").Value = sourceWS.Cells(.Row, 10).Text
Range("E11").Value = sourceWS.Cells(.Row, 3).Text
Range("B11").Value = sourceWS.Cells(.Row, 2).Text
Range("B13").Value = sourceWS.Cells(.Row, 4).Text
Range("B15").Value = sourceWS.Cells(.Row, 5).Text
Range("B18").Value = sourceWS.Cells(.Row, 6).Text
Range("B20").Value = sourceWS.Cells(.Row, 13).Text
Range("C20").Value = sourceWS.Cells(.Row, 22).Text
Range("B22").Value = sourceWS.Cells(.Row, 8).Text
Range("B24").Value = sourceWS.Cells(.Row, 15).Text
Range("B26").Value = sourceWS.Cells(.Row, 11).Text
End With
Set sourceWS = Nothing

ErrorHandler:
End Sub
thanks anyway,
Diana

"Diana Morrison" wrote:

I have a register worksheet and an 'off hold' form on separate sheets in the
same workbook. I want to place my cursor on any row in the register and
popular the form from various cells in the row in which the cursor is.
Can anyone help?
Thanks,
Diana

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
Populate a form from a sheet in same workbook Diana Morrison Excel Worksheet Functions 3 December 5th 07 07:44 PM
Populate a form Doug Excel Worksheet Functions 3 December 15th 06 03:33 PM
How to enter data in one form & populate several others w/same. cmcpsych Excel Worksheet Functions 3 October 13th 06 01:45 AM
Link a form field in a Word document to populate an excel spreads andrealdv Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
How do I select cells and make the info populate into a form? jompeters Excel Worksheet Functions 0 January 7th 05 09:43 PM


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