Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Excel Macro using vb script

I have two excel spreed sheet, one call subnet.xls, it has three fields. it
has about 300 rows, as following:
ColumnA ColumnB ColumnC
Ipaddress, gateway, subnet
192.168.1.100 192.168.1.1 255.255.0.0
--- .101 " "


the other excel spreed sheet is call all.xls, it has 6 different
worksheet(sheet1,sheet2,sheet3,sheet4,sheet5,sheet 6)
ColumnA ColumnB ColumnC ColumnD COlumnE
abc ddd fff xxx 192.168.1.100

I need to know how to write the vb.net, the condition as following:
if subnet.xls of columnA Ip address is equal to all.xls of columnE, then I
need to move gateway, subnet to all.xls after column H.
so the answer will be like this:
A B C D E F G
--- --- --- --- 192.168.1.100 192.168.1.1 255.255.0.0

so it has loop in the all.xls 6 times.

I really aprreciated all your kindness help.

Lillian





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Excel Macro using vb script

A couple of quick questions...

Is this something that you need to do on a regular basis or is this more of
a one
time thing.

Why Excel. Make these into 2 seperate tables in Access and link them on the
IP.

Why 2 seperate spreadsheets. Copy the sheets into one workbook and just do a
Vlookup to combine the results.

RSVP

"Lillian" wrote:

I have two excel spreed sheet, one call subnet.xls, it has three fields. it
has about 300 rows, as following:
ColumnA ColumnB ColumnC
Ipaddress, gateway, subnet
192.168.1.100 192.168.1.1 255.255.0.0
--- .101 " "


the other excel spreed sheet is call all.xls, it has 6 different
worksheet(sheet1,sheet2,sheet3,sheet4,sheet5,sheet 6)
ColumnA ColumnB ColumnC ColumnD COlumnE
abc ddd fff xxx 192.168.1.100

I need to know how to write the vb.net, the condition as following:
if subnet.xls of columnA Ip address is equal to all.xls of columnE, then I
need to move gateway, subnet to all.xls after column H.
so the answer will be like this:
A B C D E F G
--- --- --- --- 192.168.1.100 192.168.1.1 255.255.0.0

so it has loop in the all.xls 6 times.

I really aprreciated all your kindness help.

Lillian





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Excel Macro using vb script

Can someone show me how to do the vb script?

Your help always appreciate it.

Lillian

"Lillian" wrote:

I have two excel spreed sheet, one call subnet.xls, it has three fields. it
has about 300 rows, as following:
ColumnA ColumnB ColumnC
Ipaddress, gateway, subnet
192.168.1.100 192.168.1.1 255.255.0.0
--- .101 " "


the other excel spreed sheet is call all.xls, it has 6 different
worksheet(sheet1,sheet2,sheet3,sheet4,sheet5,sheet 6)
ColumnA ColumnB ColumnC ColumnD COlumnE
abc ddd fff xxx 192.168.1.100

I need to know how to write the vb.net, the condition as following:
if subnet.xls of columnA Ip address is equal to all.xls of columnE, then I
need to move gateway, subnet to all.xls after column H.
so the answer will be like this:
A B C D E F G
--- --- --- --- 192.168.1.100 192.168.1.1 255.255.0.0

so it has loop in the all.xls 6 times.

I really aprreciated all your kindness help.

Lillian





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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
How to generate a text file from Excel using a macro or script? Frank Excel Discussion (Misc queries) 1 January 6th 08 05:11 PM
How to generate a text file from Excel using a macro or script? Frank Excel Discussion (Misc queries) 0 January 6th 08 05:11 PM
Excel macro script to copy only formulas and not values from one sheet to another Kate[_4_] Excel Programming 5 August 13th 04 12:45 AM
How do I include wsh or vbs code/script in an Excel macro Naived Merchant Excel Programming 1 May 27th 04 02:38 PM


All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"