Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 04-09-08   #1 (permalink)
New to Overclock.net
 
Rezern's Avatar
 
amd nvidia

Join Date: May 2006
Posts: 53

Rep: 0 Rezern Unknown
Unique Rep: 0
Trader Rating: 0
Default Need help

Hi

Since I'm not a heavy programmer things kind of stopped for me when i realised that i had to write some code in Excel in order to get some buttons to do some commands.
So I'm just hoping that some of you have time time to check out this "simple" code and explaine what each line does

thx i advance

CODE:
seksfot Makro
Makro registrert 12.02.2002 av Maskin

Sheets("Deck cargo").Select
Range("G3").Select
ActiveSheet.Shapes("Rectangle 1").Select
Selection.Characters.Text = "6 fot"
With Selection.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Selection.Copy
Sheets("Deck Cargoplan").Select
Range("BH30").Select
ActiveSheet.Paste
End Sub
Sub nifot()

nifot Makro
Makro registrert 12.02.2002 av Maskin



Sheets("Deck cargo").Select
ActiveSheet.Shapes("Text Box 3").Select
Selection.Copy
Sheets("Deck Cargoplan").Select
Range("BH28").Select
ActiveSheet.Paste
End Sub
__________________
CPU-Z: Here AMD clock help tool: Here Speedfan: Here Super pi 1.4: Here Prime 95: Here Driver cleaner: Here Core temp: Here
My CPU-Z validation

System: My System
CPU
AMD A 64 X2 4200+
Motherboard
ABIT KN8 Ultra
Memory
OCZ Gold GXT pc3200
Graphics Card
XFX 8800GTS 640Mb
Hard Drive
3x80GB+120Gb+250Gb+320Gb
Power Supply
Hiper Type-r 580W
Case
APLUS case qubic
Monitor
Tiburion 19" LCD
Rezern is offline   Reply With Quote
Old 04-09-08   #2 (permalink)
PC Gamer
 
magus.tsf's Avatar
 
amd ati

Join Date: Mar 2008
Location: Deepest Wales
Posts: 150

Rep: 22 magus.tsf is acknowledged by some
Unique Rep: 0
Trader Rating: 0
Default

Quote:
Sheets("Deck cargo").Select
- Selects the worksheet named Deck Cargo
Quote:
Range("G3").Select
- Selects range G3 on that sheet
Quote:
ActiveSheet.Shapes("Rectangle 1").Select
-Also selects the shape named Rectangle 1
Quote:
Selection.Characters.Text = "6 fot"
-Adds the words "6 fot" to the selection
Quote:
With Selection.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
- changes font for the text
Quote:
Selection.Copy
- copies the selection to the clipboard
Quote:
Sheets("Deck Cargoplan").Select
-Selects the worksheet named Deck Cargoplan
Quote:
Range("BH30").Select
-Selects range BH30 on that sheet
Quote:
ActiveSheet.Paste
- Pastes the content of the clipboard to that range


Quote:
Sub nifot()

nifot Makro
Makro registrert 12.02.2002 av Maskin



Sheets("Deck cargo").Select
ActiveSheet.Shapes("Text Box 3").Select
Selection.Copy
Sheets("Deck Cargoplan").Select
Range("BH28").Select
ActiveSheet.Paste

This one selects the same sheet and copies text box 3 and then pastes it to the range named BH28 on the deck cargoplan sheet.

Hope this explains it a bit.
__________________
System: My System
CPU
Phenom 9600 BE
Motherboard
Asus M3A32-MVP Deluxe
Memory
4 GB DDR2 800 OCZ HTC Reaper
Graphics Card
Watercooled Saphire 1GB 3870 X2
Hard Drive
2 x WD 500GB SATA 2
Sound Card
Onboard 8.1 channel
Power Supply
Zalman 850 Watt Heatpipe cooled
Case
Gigabyte Mercury 3D
CPU cooling
Water
GPU cooling
EK Full Cover Waterblock
OS
Vista Ultimate
Monitor
32" HD TFT on HDMI
magus.tsf is offline   Reply With Quote
Old 04-09-08   #3 (permalink)
New to Overclock.net
 
Rezern's Avatar
 
amd nvidia

Join Date: May 2006
Posts: 53

Rep: 0 Rezern Unknown
Unique Rep: 0
Trader Rating: 0
Default

Thanks for that,helps me alot
__________________
CPU-Z: Here AMD clock help tool: Here Speedfan: Here Super pi 1.4: Here Prime 95: Here Driver cleaner: Here Core temp: Here
My CPU-Z validation

System: My System
CPU
AMD A 64 X2 4200+
Motherboard
ABIT KN8 Ultra
Memory
OCZ Gold GXT pc3200
Graphics Card
XFX 8800GTS 640Mb
Hard Drive
3x80GB+120Gb+250Gb+320Gb
Power Supply
Hiper Type-r 580W
Case
APLUS case qubic
Monitor
Tiburion 19" LCD
Rezern is offline   Reply With Quote
Old 04-09-08   #4 (permalink)
PC Gamer
 
magus.tsf's Avatar
 
amd ati

Join Date: Mar 2008
Location: Deepest Wales
Posts: 150

Rep: 22 magus.tsf is acknowledged by some
Unique Rep: 0
Trader Rating: 0
Default

np
__________________
System: My System
CPU
Phenom 9600 BE
Motherboard
Asus M3A32-MVP Deluxe
Memory
4 GB DDR2 800 OCZ HTC Reaper
Graphics Card
Watercooled Saphire 1GB 3870 X2
Hard Drive
2 x WD 500GB SATA 2
Sound Card
Onboard 8.1 channel
Power Supply
Zalman 850 Watt Heatpipe cooled
Case
Gigabyte Mercury 3D
CPU cooling
Water
GPU cooling
EK Full Cover Waterblock
OS
Vista Ultimate
Monitor
32" HD TFT on HDMI
magus.tsf is offline   Reply With Quote
Old 04-10-08   #5 (permalink)
Programmer
 
Black Magix's Avatar
 
intel ati

Join Date: Mar 2008
Location: Gunter Air Force Base
Posts: 1,136

Rep: 115 Black Magix is acknowledged by manyBlack Magix is acknowledged by many
Unique Rep: 0
Hardware Reviews: 2
Trader Rating: 3
Default

Is that some form of basic? doesn't look like VB.
__________________

If you can read this, thank a teacher. If you can read this in English, thank a veteran.
Quote:
Originally Posted by FlaKing View Post
Sweet! I can't wait. To be totally honest, it looks like something my dad would do. A computer is a magical box to him. You put electricity into it and porn comes out.

System: Silent Night
CPU
E3110 Wolfdale
Motherboard
ASUS P5K-E/WIFI-AP
Memory
4GB Corsair Dominator 1066
Graphics Card
Sapphire 1GB HD4850
Hard Drive
2x 750GB 2x 500GB 1x 300GB 1x 250GB
Sound Card
Creative X-Fi Fatality (in the market)
Power Supply
OCZ 700W GamerXstream
Case
Silverstone Kublai
CPU cooling
Zalman Copper Heatsync and fan.
GPU cooling
Stock
OS
Windows Vista Ultimate x64 / Ubuntu 7.10 x86_64
Monitor
Acer 24' Widescreen & Viewsonic 20' Widescreen
Black Magix is offline   Reply With Quote
Old 04-11-08   #6 (permalink)
PC Gamer
 
magus.tsf's Avatar
 
amd ati

Join Date: Mar 2008
Location: Deepest Wales
Posts: 150

Rep: 22 magus.tsf is acknowledged by some
Unique Rep: 0
Trader Rating: 0
Default

microsoft vba (visual basic for applications) it only works in office
__________________

The Black Mesa Survivors Club


Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae we do not raed ervey lteter by itslef but the wrod as a wlohe.

System: My System
CPU
Phenom 9600 BE
Motherboard
Asus M3A32-MVP Deluxe
Memory
4 GB DDR2 800 OCZ HTC Reaper
Graphics Card
Watercooled Saphire 1GB 3870 X2
Hard Drive
2 x WD 500GB SATA 2
Sound Card
Onboard 8.1 channel
Power Supply
Zalman 850 Watt Heatpipe cooled
Case
Gigabyte Mercury 3D
CPU cooling
Water
GPU cooling
EK Full Cover Waterblock
OS
Vista Ultimate
Monitor
32" HD TFT on HDMI
magus.tsf is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 02:16 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.17049 seconds with 9 queries