Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA 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 May 14th, 2014, 05:43 AM
Registered User
 
Join Date: May 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to insert or delete the cells based on a value in another cell?

Hi,

I am new to VBA and wonder if anyone is able to help.

I have this excel file that is built by someone else and the file is saved accidentially without macro. Now I am trying to fix it.

At cell B17, it wil indicate the number of years. Right now the cell indicate 5 years, hence the worksheet have data in K25 to O25. If I change the number of years in cell B17 to 4 years, the worksheet should only have data K25 to N25.

Sorry, if it is confusing.

Regards,





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unlocking Cells Based Upon Value of Another Cell Graviz Excel VBA 1 May 7th, 2012 11:58 AM
Replace cells, dependant on other cell values Ross66 VB How-To 0 July 16th, 2011 08:05 AM
Format cell based on another cell billy1r Excel VBA 1 June 15th, 2011 09:06 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





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