Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-17-2007, 05:24 PM   #1 (permalink)
 
True Techie

Join Date: Jul 2005

Posts: 128

Death Row is on a distinguished road

Default Visual Basic Help

I'm making a system about calculating energy usage, for my ICT project, but I've gotten hopelessly stuck on one aspect.

In order to make the project as user friendly as possible, I said they could retrieve data with macros - I've discovered however that this is rather difficult.

So, it works like this
On one sheet, there's a list box, with a load of table names, the user selects a name, and presses a macro button that looks up the table, copies the information, and pastes it onto the current worksheet.

My problem is writing the macro to look up the appropriate table.

I worked out, that the code to looking up a table was
Code:
Application.Goto Reference:="_29_03_2011"
and I thought i could simply change the table name in the code to RefersToG12
Code:
Application.Goto Reference:=RefersToG12
It simply says the reference is invalid, and I'm utterly confused as to what to do.
Any help would be greatly appreciated.
__________________

Last edited by Death Row; 12-17-2007 at 05:25 PM. Reason: Spelling/Grammar Error
Death Row is offline  
Old 12-18-2007, 06:16 PM   #2 (permalink)
 
True Techie

Join Date: Jul 2005

Posts: 128

Death Row is on a distinguished road

Default Re: Visual Basic Help

I've just thought of a much better way of rephrasing the previous post

In the formula bar in excel, there's a drop down menu, which shows all the named ranges
I just want to implement this drop down menu into a worksheet/Visual Basic Form for the user to use.

I'm pretty sure this is possible with some clever visual basic coding, but if it isn't, please tell me!

Thanls again
__________________
Death Row is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Visual Studio express. TuNiX Programming Discussions 2 10-03-2007 08:47 AM
Total noob wants to learn VB snypercore Programming Discussions 8 08-15-2007 11:40 AM
Create a new line on visual basic text box Mike9182 Programming Discussions 4 08-12-2007 06:35 PM
Visual Basic & FineReader 8.0. Help ! Johnny888 Programming Discussions 1 05-29-2007 07:55 PM
quick and easiest way to learn visual basic.net? maxima2k2 Programming Discussions 2 05-22-2007 08:46 AM