Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


can someone fiux this code for me



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
linoukus



Joined: 17 Nov 2006
Posts: 1

PostPosted: Fri Nov 17, 2006 9:00 pm    Post subject: can someone fiux this code for me Reply with quote

ok i know this code is wrong because what i want it to do is beond me coding capablity,

the purspose of the code is take some data and paste it in the right place in excel.

Private Sub cmdFinish_Click()
Dim strDepartment As String
Dim strSheet As String
Dim strDeliver As String
Dim strDate As String
Dim strTest As String
Dim intTest As Integer
Dim intQuanity As Integer
Dim strSheet As String

Sheets("Sheet1").Select
strDeliver = txtDeliver
strDate = txtDate
Range("H2").Value = strDeliver
Range("I2").Value = strDate
intTest = 3
strTest = "D" + intTest
intQuanity = Range(strTest).Value
strDepartment = Range("H2").Value
strMonth = Range("J2").Value
strSheet = strDepartment + strMonth

Do Until intQuanity = 0
intTest = intTest + 1
Loop

Range("A2:F2,H2,I2").Copy
Sheets(strMonth).Select
Range("strTest").Selecth
ActiveSheet.Paste
End Sub
if you could help me i would be very grateful
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap