Hello all
I have a question on a task that has been assigned to me at work. First off my experience with Visual Basic is limited. I can record macros and understand the programing of the macro once it's recorded. BUT when it comes to writing my own code things get a little out there. Anyway since i am the most familiar with programing (I can whip up a mean Autolisp routine ) i was give the task of making a macro for a spreadsheet that we have. I started to work my way through with the help on visual basic and the wall that i came across was that what i call a variable in lisp would be something like a dataobject in Visual. But when i try the run the code in the module the line "dim x as dataobject" returns an error. (there is no dataobject in the dropdown box that pops up when you are typing. Do you need to load this function?) I surrendered .The sheet consists of two sheet (the first page is the summery page w/ 30 or so rows with each row consisting of the vehicle #, 1 blank cell, one drop down list with weekly dates on it, then 2 cells that have the mileage of the vehicle and the date of the last maintenance on the rig. The Macro that im trying to build would first cycle through the column of blank cells checking to see if there is information in the cell. If there is information in the cell it would copy the information from the cell read the date that is entered in the drop down box search the second sheet for that date and enter the information in the correct cell. If someone would be able to take a look at it and give some pointers i would appreciate it. (also if someone would like to look at the actual sheets i can post them.)
I have a question on a task that has been assigned to me at work. First off my experience with Visual Basic is limited. I can record macros and understand the programing of the macro once it's recorded. BUT when it comes to writing my own code things get a little out there. Anyway since i am the most familiar with programing (I can whip up a mean Autolisp routine ) i was give the task of making a macro for a spreadsheet that we have. I started to work my way through with the help on visual basic and the wall that i came across was that what i call a variable in lisp would be something like a dataobject in Visual. But when i try the run the code in the module the line "dim x as dataobject" returns an error. (there is no dataobject in the dropdown box that pops up when you are typing. Do you need to load this function?) I surrendered .The sheet consists of two sheet (the first page is the summery page w/ 30 or so rows with each row consisting of the vehicle #, 1 blank cell, one drop down list with weekly dates on it, then 2 cells that have the mileage of the vehicle and the date of the last maintenance on the rig. The Macro that im trying to build would first cycle through the column of blank cells checking to see if there is information in the cell. If there is information in the cell it would copy the information from the cell read the date that is entered in the drop down box search the second sheet for that date and enter the information in the correct cell. If someone would be able to take a look at it and give some pointers i would appreciate it. (also if someone would like to look at the actual sheets i can post them.)