VB Script help for Changing cells in Excel

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
unique12u
Newbie
Posts: 9
Joined: Mon Jan 30, 2006 3:37 pm

VB Script help for Changing cells in Excel

Post by unique12u » Mon Apr 10, 2006 3:18 am

I need to change certain rows in a column in excel based on the value in another column. Can someone give me some VB script help on doing that.

IE IF A1=1 then B1=2

Thanks
Nique

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Apr 11, 2006 9:18 am

The easiest way to do this is actually to use DDE with DDERequest and DDEPoke rather than with VBScrip. There are examples on these forums showing both DDE and VBScript methods for manipulating Excel data. If you search you will find them. Click on search link above and try following queries:

DDERequest Excel

excel.application vbstart
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts