Paste values into cells

DHWiseman

New Member
Joined
Mar 24, 2018
Messages
1
Hi, I am fairly new to writing code in Excel, but I am using Excel with UserForms to create a config file. In this particular piece I am trying to add multiple sections to the config in the format of:

config category
edit "variable X<variable x="">"
</variable>​
<variable x=""> set comment "<variable y="">variable Y"
</variable></variable>​
<variable x=""><variable y=""> next
</variable></variable>​
<variable x=""><variable y=""> edit "<variable x="">variable X"
</variable></variable></variable>​
<variable x=""><variable y=""><variable x=""> set comment "<variable y="">variable Y"
</variable></variable></variable></variable>​
<variable x=""><variable y=""><variable x=""><variable y=""> next
</variable></variable></variable></variable>​
<variable x=""><variable y=""><variable x=""><variable y="">end

I have a UserForm to collect for variables X and Y which works just fine, but I want to add the values to a column of cells in a worksheet to be later retrieved. I am not sure how to go about writing the values to a column of cells so that it starts with the "config category", ends with "end" and inserts the other three lines with the variables in between them. Anyone have any suggestions? Any help is greatly appreciated.</variable></variable></variable></variable>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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