What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Excel and VB

Excel and VB
Author: Message:
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
O.P. Excel and VB
Well guys, I'm making some work with Excel, and I wanted to put 2 comand buttons so they copy a value or result of one cell to the clipboard...
Anyway... Can someone point me to a tutorial that explains Visual Basic with Excel, please??? Or explains me what I need to do...???

Example of how excel is working:
In a easy way, a result is shown on the Cell (B2) depending on what I specify in other... So B2 has a function, that shows a value depending on what I specify... So, I want to make a button that copies the result on B2 on clipboard...


If someone could help, I would realy apreciate

;)

And... Just adding this code that I've changed a little, but still doesn't work:


Private Sub CommandButton1_Click()
Dim n As Integer
For n = 17 To 17
  cell.Value(n, 2) = Copy(cell)
         
Next n
End Sub

This post was edited on 10-29-2007 at 01:41 AM by MicroWay.
10-28-2007 11:41 PM
Profile PM Find Quote Report
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
31 / Male / Flag
Joined: Feb 2007
RE: Excel and VB
Tutorials and info:

long URL 1
long URL 2

Also you may want to read this => http://www.developerfusion.co.uk/show/35/

Dont know the second part but i hope that helps :)

This post was edited on 10-31-2007 at 12:02 AM by WDZ.
No longer here.
10-29-2007 02:43 AM
Profile PM Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
O.P. RE: Excel and VB
quote:
Originally posted by MicroWay
Thanks!!! I'm taking a look to them...
But remember, please, that if you've more information, please, post it... To help anybody: I'm talking about the macros.
;)

Well, after days of search anf trying to learn something, I discovered that I'm not good on coding this... :S
And obviously this will be the last time I'll use VB with Excel, so could someone code it for me???
Little more information: I have one cel (B17) that with a function it calculates a value. I've made a ComandButton and I've placed it down the "result cell"(B17)... But I need a code that when the button is clicked, the result given on the cell (B17) will be copied to clipboard (as a text)....

Thanks in advance
;)

This post was edited on 10-30-2007 at 11:50 PM by MicroWay.
10-30-2007 11:42 PM
Profile PM Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Excel and VB
If you want to copy the contents of a certain cell to the clipboard, use
code:
Private Sub CommandButton1_Click()
Range("B2").Copy
End Sub
But replace B2 with whatever cell you need.

Is this what you're looking for?
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
10-31-2007 12:00 AM
Profile PM Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
37 / Male / Flag
Joined: Jul 2006
Status: Away
O.P. RE: Excel and VB
I don't believe!!! I get it too close in my tries.... :S

Thanks anyway, fatfreechicken!!!
;)
10-31-2007 12:07 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On