LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to handle shifted columns

Hi,

I have a function StoreData in VB 6.0 class which takes Excel Range as
parameter. From the form I would call this function and pass the grouping
column and data column to read from this range. Let us say the Range is
having 5 columns i.e. B,C,D,E and F so i would call ReadData
RangeName,"C","E" where C is my grouping column and E is my data column.

I would also store this call in another sheet of the same workbook so that
when I switch off my computer and call another function RefreshData, it would
automatically call ReadData with same parameters to give me the same results
back. Now the problem is that user may insert some more columns in between C
and D columns or between B and C column and he can also increase the no. of
rows in the same range after I have written the call details to the another
sheet.

My problem is how to ensure that when I put on my computer and call the
RefreshData method it would still ensure that grouping column is picked as
"C" which may/may not have shifted to new position and to correctly pickup
data column as "E" which may/may not have shifted to new position. Idea is
that columns should be picked up correctly.

I know I would have to do some trick with Storing the details but I am not
aware how to handle this.

Would really appreciate your help.

Thanks


 
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
Row to Be shifted to another location in the same Worksheet Misho Excel Discussion (Misc queries) 0 May 21st 09 05:11 PM
Format shifted in print preview bmnjna2019 Excel Discussion (Misc queries) 2 July 27th 07 05:06 PM
Fill handle turned into a move handle Northwoods Excel Discussion (Misc queries) 1 March 2nd 07 03:40 PM
Highlighting Has Shifted on Rows Lisa AGA Excel Discussion (Misc queries) 1 October 27th 06 09:48 PM
Fill Handle Across Columns SenojNW Excel Discussion (Misc queries) 4 August 8th 05 07:23 PM


All times are GMT +1. The time now is 05:55 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"