LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default formulas refer to columns that are deleted

The first thing that comes to mind is that you could start with
something like this:

Do
x = x + 1
Loop Until Cells(1, x).Value = ""

This will run until it comes to a blank column. Then you can run the
code one way or another based on that number

If x = 8 Then
blah blah blah
Else If x = 10
blah blah blah
End If

That is just one example of how you can use the information. Let
me know if you need further help. - Pikus
:D


---
Message posted from http://www.ExcelForum.com/

 
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
Formulas that refer to a cell in the last row JBoyer Excel Worksheet Functions 3 July 11th 08 07:25 PM
Formulas that refer to (several) other columns for arguments... audreyglennette Excel Worksheet Functions 5 April 1st 06 04:04 AM
Formulas that refer to other colums for arguments? audreyglennette Excel Worksheet Functions 6 March 31st 06 12:19 AM
refer to columns Cindy Excel Discussion (Misc queries) 1 January 20th 06 09:51 PM
Excel should let me use formulas that refer to other cells w/ form Chenopod Excel Worksheet Functions 7 May 31st 05 04:21 PM


All times are GMT +1. The time now is 06:53 AM.

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"