Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2011, 08:05 AM
Registered User
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Replace cells, dependant on other cell values

Hi,

Hopefully this is a fairly simple prob for clued up people .... unlike me !!

I am trying to sort out an order form for my wife. To mark the end of the order list (col C) I have the text "NONE". What I want to do is find this text in the column, (say cell C20) and do a number of things .....

Copy its content ("NONE") into the next row (ie C21)
Copy the name of the purchaser (cell D10) into the original "NONE" cell (C20).
Copy order No (dependant on row position - ie B20).

I already have a cell with the value of the row position in, if it helps (ie Cell F1=20). The idea is that so I can hit a button, to replace on "NONE" row, with info about the order and put "NONE" into the next row, ready for the next order. Obviously, the row position of "NONE" changes on each visit.

I hope this makes sense ??

Many thanks in advance,
Ross





Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace the cells having negative value yogeshyl Excel VBA 4 April 29th, 2016 01:43 PM
Remove empty cells and paste data from cell below aquavion Excel VBA 4 September 28th, 2009 09:52 AM
cells values with validation in another cell srahuf Excel VBA 1 May 30th, 2008 04:05 AM
Replace all cells having value <=zero yogeshyl Excel VBA 1 May 16th, 2007 02:26 PM
how to add from text values into excel cells kotaiah Excel VBA 2 September 12th, 2006 10:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.