Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 2nd, 2003, 07:44 AM
Billy Baxter Billy Baxter is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Dubai UAE
Posts: 2 Billy Baxter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Can someone help by creating a macro for a novice?

I have never used VBA but realise that this is what I need to resolve my problem.
Any help will be greatly appreciated.
I have a file which I have attached here, which updates tennis results into a ranking list.
Scores entered on the “Results” worksheet will appear in the next empty column on the “Players” worksheet, when clicking on the “Transfer Results” button.
This is fine as long as they are league results. If the matches played are for a tournament however, then I need a button which would enable results to be fed into column “AG” and subsequent columns which are specifically for tournament matches (as they don’t incur penalties), and so not affect the columns for the league. I can't find any function that will do this, nor can I do it myself using the "Record Macro".
Can anyone help please? many thanks in advance
Billy
Attached Files
File Type: zip example.zip (160.7 KB, 235 views)

Reply With Quote
  #2  
Old October 20th, 2003, 06:45 PM
galaganut galaganut is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 23 galaganut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 44 m 17 sec
Reputation Power: 0
You need another column...

How do you know if the match was a tournament or a league match?

If you had another column on the Results page you could enter a T- tournament or a L-League. Then your transfer macro would consist of a loop that had an If statement.
Something like this>>>
Code:

Sub Transfer()
Dim r as long

For r = 1 To Range("G65535").End(xlUp).Row +1
'assuming that the T or L will be in col G.
If Range("G" & r).Value = T Then
' your code here to move to first avail after AG (let me know if you still need help)
Else
'your code here to move normally
End If
next r
End Sub


I know your post is old but let me know if I can help.

Thanks,

Chuck

Reply With Quote
  #3  
Old October 22nd, 2003, 07:19 AM
Billy Baxter Billy Baxter is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Dubai UAE
Posts: 2 Billy Baxter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for taking the time to look at this and work on it. League results and other matches such as tournaments are sent in separately. So you already know where you want to have them entered.
I have already had somebody else look at this same problem for me and it has been solved. If I knew how it has been done I would gladly tell you but visual basic is beyond me I'm afraid.
Thanks again
Billy B

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Can someone help by creating a macro for a novice?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT