473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

userform to cell on differnt sheet

i have a button on sheet 1 and i would like the userform to insert the text i input into sheet 2. And if there is a way the next time i access the userform that is inserts wha i have in the cell already so i could add to it.
Jun 14 '07 #1
2 1287
kadghar
1,295 Expert 1GB
ok, let mi see if i understood what you want

You have an UserForm and two worksheets; what you want is to write something in worksheet 1, then load the user form, click a button so the text in worksheet 1 appears in worksheet 2 and then unload the form.

And you also want that next time you load the form, it shows the text in worksheet 2??

Well, first of all, lets imagine the user form has a CommandButton and a TextBox.

What you have to do is to doble click the user form and go in the upper right menu to where it says "initialize". there you should write something like:

Expand|Select|Wrap|Line Numbers
  1. Private Sub UserForm_Initialize()
  2. TextBox1.Text = Worksheets(2).Cells(1,1).Value
  3. End Sub
Then double click the command button, and there you should have something like

Expand|Select|Wrap|Line Numbers
  1. Private Sub CommandButton1_click()
  2. worksheets(2).cells(1,1).value = worksheets(1).cells(1,1).value
  3. end sub
And there you go... this will do for the cell A1 in both worksheets, you can always generalize it to any range.

Good Luck

Kad
Jun 14 '07 #2
Sorry about the clairty of the question i'm looking for a way to put text unto a cell from a userfrom textbox on a sheet in D2 on sheet2 from sheet1 dose anyone know how to do this?
Jun 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
3
by: gw.boswell | last post by:
I have created a userform with textboxes for data entry. I also have a command button that calls a second useform. A user enters certain information in the first useform but if he/she wants to do...
0
by: golf32902 | last post by:
Is there a way to have a textbox in a userform insert text into a cell and when i go back to it that it will add the text that is in the cell back in the textbox for more input ?
2
by: hapnendad | last post by:
I am using a selection_change event on a worksheet to launch a userform that will populate the cell when a selection is made from a drop down list box on the form. Selection_change shows form if cell...
1
by: brenty66 | last post by:
I have a userform that is used as an interface for information stored on excel spreadsheets. The user enters bits of information into fields on the userform which are place on the corresponding...
3
by: woolls01 | last post by:
I have a userform with several tabbed sheets within it, what code do I need to use to select different tabs automatically in VB? I want to be able to tell the macro to run page 1 on startup and a...
0
by: JP Romano | last post by:
Hi... I'd like to display the results of a formula on a userform to alert users that certain operations are still in progress. Essentially, when the user clicks a button to compile results from...
1
by: Monusonu | last post by:
Hi Expert, I am trying to get the value from excel formula cell using POI. My code works fine for less complex formula cells, but fails or returns error code for complex formula cells. Following...
4
by: DWHTHS | last post by:
Hello, this is a VBA query relating to Microsoft Excel 2007. I am trying to run a macro that copies the current sheet and deletes some of the content to provide a new blank sheet. Ideally I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.