Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Formatted cells turning up in column IV

If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column appear
when I might have expected a totally blank new column?

Thanks for any help/advice.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Formatted cells turning up in column IV

I cannot repeat your error with Excel2002.
Maybe you have some code doing this that you have forgotten/missed ?

NickHK

"Kanga 85" wrote in message
...
If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column

appear
when I might have expected a totally blank new column?

Thanks for any help/advice.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Formatted cells turning up in column IV

NickHK,
I have Excel2000. I cannot find any code that would cause this problem.


"NickHK" wrote:

I cannot repeat your error with Excel2002.
Maybe you have some code doing this that you have forgotten/missed ?

NickHK

"Kanga 85" wrote in message
...
If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column

appear
when I might have expected a totally blank new column?

Thanks for any help/advice.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Formatted cells turning up in column IV

If you open excel in safe mode

Windows start button|Run
type:
excel /safe

And then file|open your workbook

Then test it, what happens?

Kanga 85 wrote:

NickHK,
I have Excel2000. I cannot find any code that would cause this problem.

"NickHK" wrote:

I cannot repeat your error with Excel2002.
Maybe you have some code doing this that you have forgotten/missed ?

NickHK

"Kanga 85" wrote in message
...
If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column

appear
when I might have expected a totally blank new column?

Thanks for any help/advice.





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Formatted cells turning up in column IV

Dave,
'Excel /safe' gave me a 'Please wait while windows configures
MicrosoftOffice XP Professional ......'.

Then 'The feature you are trying to use is on a CD-Rom...'.

Inserted OfficeXP Pro CD and got the same message as above 'Please wait
while.....'.

Excel then loaded in safe mode. I loaded my spreadsheet and got the
standard 'Macros disabled....'. Bypassed this and deleted one column to
find that the same problem occured. Cell IV3 turns up with a border
linestyle (actually the top border, a style I would not normally use). I
then cannot delete a column unless I first remove remove the linestyle.
i.e., Safe mode had no apparent effect, other than to disable macros.

I too cannot duplicate this problem on blank spreadsheets, so it must be a
problem inherent in the operational spreadsheet only.

Thanks,

"Dave Peterson" wrote:

If you open excel in safe mode

Windows start button|Run
type:
excel /safe

And then file|open your workbook

Then test it, what happens?

Kanga 85 wrote:

NickHK,
I have Excel2000. I cannot find any code that would cause this problem.

"NickHK" wrote:

I cannot repeat your error with Excel2002.
Maybe you have some code doing this that you have forgotten/missed ?

NickHK

"Kanga 85" wrote in message
...
If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column
appear
when I might have expected a totally blank new column?

Thanks for any help/advice.




--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Formatted cells turning up in column IV

A worksheet containing this phenomenom is posted at:
http://www.freefileupload.net/file.p.../IVProblem.xls

"Kanga 85" wrote:

If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column appear
when I might have expected a totally blank new column?

Thanks for any help/advice.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Formatted cells turning up in column IV

Well, I can't say why Excel is creating this border; some glitch in the WS I
suppose.
It seems that the line is an xlInsideHorizontal, but how you create one of
those is beyond me; I can only add a xlEdgeBottom ???
But you can permenantly get rid of it with this:

Private Sub CommandButton1_Click()
'Create a border line, so there is something to change
Columns("IU:IU").Delete Shift:=xlToLeft

'Change the borders
With Rows("46:47")
.Borders(xlInsideHorizontal).LineStyle = xlNone
' .Borders(xlEdgeBottom).LineStyle = xlNone
End With

'Test
Columns("IU:IU").Delete Shift:=xlToLeft

End Sub

NickHK

"Kanga 85" wrote in message
...
A worksheet containing this phenomenom is posted at:

http://www.freefileupload.net/file.p.../IVProblem.xls

"Kanga 85" wrote:

If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with

a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft

Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that

seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column

appear
when I might have expected a totally blank new column?

Thanks for any help/advice.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Formatted cells turning up in column IV

Thanks Nick


NickHK" wrote:


Well, I can't say why Excel is creating this border; some glitch in the WS I
suppose.
It seems that the line is an xlInsideHorizontal, but how you create one of
those is beyond me; I can only add a xlEdgeBottom ???
But you can permenantly get rid of it with this:

Private Sub CommandButton1_Click()
'Create a border line, so there is something to change
Columns("IU:IU").Delete Shift:=xlToLeft

'Change the borders
With Rows("46:47")
.Borders(xlInsideHorizontal).LineStyle = xlNone
' .Borders(xlEdgeBottom).LineStyle = xlNone
End With

'Test
Columns("IU:IU").Delete Shift:=xlToLeft

End Sub

NickHK

"Kanga 85" wrote in message
...
A worksheet containing this phenomenom is posted at:

http://www.freefileupload.net/file.p.../IVProblem.xls

"Kanga 85" wrote:

If I remove a Column:

Columns ("B:B").Delete Shift:=xlToLeft,

I find that column IV (the last column in the spreadsheet) turns up with

a
formatted cell (IV3) with a Border.Linestyle.

If I then try to insert a Column:

Columns ("B:B").Insert Shift:=xlToRight,

I get the error message "To prevent possible loss of Data Microsoft

Excel
cannot shift nonblank cells off the worksheet...."

I can obviously go to Range "IV3" and clear the formatting, but that

seems
tedious. How do I ensure that I get a blank column IV when I delete a
column elsewhere in a spreadsheet, and why does this formatted column

appear
when I might have expected a totally blank new column?

Thanks for any help/advice.




Reply
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
column formatted to general - cells keep changing to date? lilsparkdog New Users to Excel 1 September 11th 08 05:48 PM
Turning a row's contents into a column of entries Musawwir Spiegel New Users to Excel 2 February 20th 08 10:12 PM
Turning a row into a column? While importing? Crafty Excel Discussion (Misc queries) 1 October 3rd 05 07:54 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM
VB - turning cells specified colours Fraggs[_9_] Excel Programming 7 April 16th 04 06:23 PM


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