473,396 Members | 1,755 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,396 software developers and data experts.

Transfer data between sheets

Hi Guido,

Please provide me the code for tranferring the data between sheets. It is little urgent. I didnt know how to open a new call. Is that correct what i am doing. Please help me in solving this.

Thanks,
Attached Files
File Type: xls Enable and disable checkbox_v2.xls (59.0 KB, 532 views)
Jan 30 '12 #1
10 2775
Guido Geurs
767 Expert 512MB
This call is OK.
You can use arrays to transfer data from one sheet to an other in a fast way.

I have some questions and I need more help for this project (I need to know what you exactly want as end result):
- does all the data sheets have the same columns (number , titles)
- is it possible to attach an example of the result you want?
Like "sheet total" with the columns and an example of the data.
Feb 3 '12 #2
Hi, How is that possible with arrays. Do i have to store all the data in the array first.

My end result should be i should be able to see all the data of which selected under Frame1_1.

Yes every sheet has same format of data, but columns might be increased.

Will this help.
Feb 6 '12 #3
I have attached a example file. Once button "Go" is clicked then i should get a another user form where the data should be pulled from different sheets according to the number of checkboxes checked under "Frame_1. And above each textboxes in the userform2, there is label in each column, it should fetch the name the checkboxes which is checked.

Thanks,
Attached Files
File Type: xls Enable and disable checkbox_v2.xls (67.0 KB, 331 views)
Feb 6 '12 #4
Guido Geurs
767 Expert 512MB
Sorry but I still don't understand how the result must be.
This is not transfer data between sheets!
If you want the results in a form, how is it possible to put all the data (see attached picture "data_v2.gif") in 8 fixed textboxes ?
Is it possible to attach a screen capture how the result must be ?
I have attached an example userform1_v2.gif and userform2_v2.gif (possibly wrong but an impression how you can explain what you want)
Attached Images
File Type: gif data_v2.gif (2.2 KB, 304 views)
File Type: jpg userform1_v2.jpg (26.6 KB, 540 views)
File Type: jpg userform2_v2.jpg (16.1 KB, 385 views)
Feb 6 '12 #5
Hi, I wanted the data to be displayed in the form(Final Result). The data is present in various excel sheets, according to the number of checkboxes checked it should display the data. The data in the sheets are formatted as a table, with number of rows in various sheets, only the columns might increase.

What i have done is, when the checkboxes above are selected, those checkboxes names would be displayed in the frame below(Frame_1_1 & Frame_1_2). In the middle of the code what i have done is, i have fetched the data into the textboxes using "Sheet1.Range("A1")". Then in the next form i display only the data of checkboxes which are checked under Frame_1_1 & Frame_1_2. Is there any other way do this.

Thanks,
Feb 7 '12 #6
Guido Geurs
767 Expert 512MB
This is how it can be done.
I don't think it's a good idea to use checkboxes because the number of sheets and columns can change.!
Therefore I have used listboxes with check indicators.
The user can only select 2 sheets.
If he want to change his selection: deselect the wrong selected sheet first.
I have also changed the titles and data just for checking if the right data is transfered between the sheets.
I think it's not wise to transfer the data to a form: problems if there is a lot of data to see, so I have dumped the data in the first sheet.
Attached Files
File Type: xls Enable and disable checkbox_v3.4.xls (83.5 KB, 324 views)
Feb 8 '12 #7
Thanks alot for your response. I shall try and execute this in my project. And it was correct when forms is used to display the data. If data increases the forms size also increases. Thanks for your valuable time. I will get back if i have any other queries.

Thanks,
Feb 8 '12 #8
Hi, I have a query. Would it be possible for you to change the below code for the checkboxes instead of listboxes.

Private Sub UserForm_Activate()
Dim SHEETSidx As Integer
For SHEETSidx = 2 To Sheets.Count
ListSheets.AddItem Sheets.Item(SHEETSidx).Name
Next
Com_Next.Enabled = False
ListSheets.MultiSelect = fmMultiSelectMulti
ListAttributes1.MultiSelect = fmMultiSelectMulti
ListAttributes2.MultiSelect = fmMultiSelectMulti
End Sub

It will be a great help for me.

Thanks,
Feb 8 '12 #9
Hi, Is there any way that if the new sheets are added it will automatically add the checkboxes. As you have done it for list boxes.
Feb 9 '12 #10
Guido Geurs
767 Expert 512MB
There are 3 ways to work:

1- with the listbox as checkbox layout(see previous demos)
flexibility: no limitations for the number of checkpoints.
code: very simple.

2- fixed checkboxes (see previous demos)
flexibility: limitation for the number of checkpoints. The checkboxes must be placed on the form in VBA environment (limited place)
code: more complex for tracing which checkbox is clicked (no indexes).

3- dinamic placed checkboxes
flexibility: limitation for the number of checkpoints (limited place). The checkboxes are placed on the form at runtime.
code: most complex for tracing which checkbox is clicked (no indexes) and the events must be coded in a class environment.
Feb 11 '12 #11

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

Similar topics

2
by: Lyn Duong | last post by:
hi all, I am trying to create a dts package to transfer data from tables in my sql server 2000 database to a db2 UDB v8.1.4 database. When I use ibm db2 oledb driver for the destination this...
1
by: bwalke | last post by:
Hi all, I am fairly new to using triggers and was seeking some help from those that have experience with them. I am looking to transfer data from a SQL 2000 database to a Visual FoxPro database...
0
by: Vrushal | last post by:
Hii HOW TO: Transfer Data to an word Template by Using ASP.NET What i m trying to do is .. User will select the word Template (dot file) from the asp.net page, and when i ll click SAVE i want...
4
by: Fernando Lopes | last post by:
Hi there. There's a way to transfer data between pages but: - Not using Session - Not use Querystring Tks. Fernando Lopes
1
by: Pratchaya | last post by:
Hi, All I want to make transfer data between MySQL Server to MySQL Local . My Environment. Server < --- > My PC Client Server = ::::: MySQL DB Server ( for Linux )
4
by: micatcat | last post by:
Hello, I have a text field that gets populated when the user clicks on the submit button. How do I transfer this field onto a Word document? Please help me.
1
by: jcnone | last post by:
Can anyone help me to transfer data results from a SQL query to input forms on a web page using vba or whatever will work. I work on a web page with forms that I need to populate with data. The...
1
by: indirareddy | last post by:
Hai this is indira reddy ....... this is big proublem how to transfer Data one registration form to at time 40 other registration forms......are u not understanding.....i explain once...
0
by: grant | last post by:
I have a transfer data task that gets some data from a table and outputs it to a pipe delimitd text file. How can I configure a transfer data task so it outputs the field names from the table in...
1
by: Sekhar C | last post by:
I have 100 excel sheets with same field name,with same number of fields,with similar datatype. i want to transfer data from all excel sheets to one Sql database Table using one Package, i am using...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.