Cells with fields

jonybandana

New Member
Joined
Dec 16, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!

I would like to know if there is any way (maybe an add-in) that would allow to have all cells on a column to have fields, for example:

UserIDInfo
13462Name:
Surname:
Address:
12844Name:
Surname:
Address:
12394Name:
Surname:
Address:

This fields on "Info" would be automatically generated for all cells in a column and I would be able to complete them as if they were a form.

Is there any way to do this?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Would it not be more analysis friendly to have the Name, Surname and address in seperate columns next to the UserID?

Was jsut thinking if someone said a want the postcode for everyone on the worksheet - this wold be a nightmare if all the information is in the format above. It would however be simple if the address was in its own cell.

Sorry if it seems like a silly question.
 
Upvote 0
Otherwise the below code:
VBA Code:
Sub test()
    Dim rng As Range, var As Variant, x As Long
    
    Set rng = Range(Range("A2"), Range("A" & Rows.Count).End(xlUp)).Resize(, 2)
    var = rng.Value
    
    For x = 1 To UBound(var)
        var(x, 2) = "Name:" & vbNewLine & "Surname:" & vbNewLine & "Address:"
    Next x
    rng = var
End Sub

Will produce:
Book1
AB
1UserID
213462Name: Surname: Address:
312844Name: Surname: Address:
412394Name: Surname: Address:
Sheet1


Just need to set wrap text for column B
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top