PC Review


Reply
Thread Tools Rate Thread

Create User-defined Template

 
 
SeventhFloorProfessor
Guest
Posts: n/a
 
      22nd May 2009
I have a couple of general questions:

1) I am creating a macro that is attached to a Gradebook. The thing about
gradebooks is that every teacher has their preferred layout AND specific
gradebook programs that take .csv files require those .csv files to be in a
specific format. In order to let the user run my macro with any gradebook
layout, I'd like to be able to do something like this:

Have user select cell containing first assignment, then select second cell
containing the second assignment. Since gradebooks do follow a pattern (e.g.
Assignment Name #1 is in A1, Assignment Name #2 is in A3, Assignment Name #3
is in A5, etc) I would be able to let the macro run after it has this basic
information. The code for allowing the user to select the first two
Assignment Name cells is

Set assignmentNamerange1 = Application.InputBox(Prompt:="Please select the
cell in your GRADEBOOK with the FIRST Assignment Name.", Title:="Select
Assignment Name Cell", Type:=8)

Set assignmentNamerange2 = Application.InputBox(Prompt:="Please select the
cell in your GRADEBOOK with the SECOND Assignment Name.", Title:="Select
Assignment Name Cell", Type:=8)

What I would need is code that would allow the macro to compute the distance
between assignmentNamerange1 & assignmentNamerange2, and then store that as a
variable (nextCellassignmentname), and use that variable to move a specified
distance.

2) Let's say a teacher creates their gradebook using this macro. Is there
any VBA code that would allow the macro to recognize that it has already
created a template? I was thinking a userform that has some options on it
("Create New Template", "Create New Gradebook from Template", "Update
Gradebook from File", "Update Gradebook Manually").

3) And finally, is it possible to "protect" an excel file so that it can
only be used on a specific computer, or specific number of computers?

Thanks for your help! For some reason, I have trouble accessing this forum,
so if you ask a question and I don't reply for a couple hours, it's not for
lack of trying, but I will check back often!
 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fuzzy company logo on user-defined outlook template Newbie Microsoft Outlook Form Programming 0 6th Oct 2006 01:14 PM
user-defined chart template location =?Utf-8?B?c2ltb24=?= Microsoft Excel Charting 1 12th Aug 2005 04:25 PM
Using User Template Shows More Styles than defined =?Utf-8?B?SW93YU1pa2U=?= Microsoft Word Document Management 1 5th Jun 2005 10:36 PM
How do i default my own user defined template in Word? =?Utf-8?B?S2F0ZXJpbmFAUmVnZW5lcmlz?= Microsoft Word Document Management 2 27th Jan 2005 08:52 PM
How to Create an User Defined Property for a Combo Box User Contro =?Utf-8?B?UHJhYmh1ZGhhcyBQZXRlcg==?= Microsoft VB .NET 2 24th Jan 2005 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.