Repopulate Form of a Multi Option Button

TellM1955

New Member
Joined
Apr 8, 2021
Messages
35
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have a form with a number of multi option groups that, using the code below write the data to the record. However, what I want to do is to recall that option selected back to the form for editing and I can't find how this is done. Can anyine assist?
VBA Code:
      If Me.OptionTuePME.Value Then .Cells(NewRow, 14).Value = "E"
      If Me.OptionTuePML.Value Then .Cells(NewRow, 14).Value = "x"
      If Me.OptionTuePMNR.Value Then .Cells(NewRow, 14).Value = ""
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi
testing for each of those values should return True / False to each of the controls

VBA Code:
      Me.OptionTuePME.Value = .Cells(NewRow, 14).Value = "E"
      Me.OptionTuePML.Value = .Cells(NewRow, 14).Value = "x"
      Me.OptionTuePMNR.Value = .Cells(NewRow, 14).Value = ""

Do note that tests are case sensitive & may want to consider making it case insensitive if there is possibility that your application may post data to the range in a different format.

Dave
 
Upvote 1
Solution

Forum statistics

Threads
1,222,830
Messages
6,168,509
Members
452,194
Latest member
Lowie27

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