Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Huber57
 
Posts: n/a
Default Pasting over hidden columns

I have hidden some rows in my workbook. I would like to paste some data
over these hidden cells and allow the data to skip them.

For example, if I have hidden Columns B and C and I paste 1, 2, 3, 4 (all
from different cells) into a row, 1 should appear in A1, 2 should appear in
D1, 3 should appear in E1, etc. Do you know how I can skip hidden rows when
I paste data?

I am using Excel 2003.

Sincerely,

huber 57
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Pasting over hidden columns

I think you'll have to copy and paste in pieces--do each area of the visible
range separately.

Huber57 wrote:

I have hidden some rows in my workbook. I would like to paste some data
over these hidden cells and allow the data to skip them.

For example, if I have hidden Columns B and C and I paste 1, 2, 3, 4 (all
from different cells) into a row, 1 should appear in A1, 2 should appear in
D1, 3 should appear in E1, etc. Do you know how I can skip hidden rows when
I paste data?

I am using Excel 2003.

Sincerely,

huber 57


--

Dave Peterson
  #3   Report Post  
Member
 
Location: London
Posts: 78
Default

Easy. After selecting your range:

1. Go to the 'Edit' menu
2. Select 'Go To...'
3. Ignore the first dialog that appears and click 'Special...'
4. Check 'Visible Cells Only' (right-hand side, 3rd option from bottom)
5. Click 'OK'

Then do your Paste/whatever other function you wish to apply only to the visible cells in the selected range.

Regards,
MB

Quote:
Originally Posted by Dave Peterson
I think you'll have to copy and paste in pieces--do each area of the visible
range separately.

Huber57 wrote:

I have hidden some rows in my workbook. I would like to paste some data
over these hidden cells and allow the data to skip them.

For example, if I have hidden Columns B and C and I paste 1, 2, 3, 4 (all
from different cells) into a row, 1 should appear in A1, 2 should appear in
D1, 3 should appear in E1, etc. Do you know how I can skip hidden rows when
I paste data?

I am using Excel 2003.

Sincerely,

huber 57


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Pasting over hidden columns

Have you really tried this, it certainly does not work for me? Hide columns
B and D, put 1 in H1, 2 in I1 and 3 in J1, copy H1:J1, now select columns
A:E, go to special and select visible cells only, paste the values, what do
you get?


--

Regards,

Peo Sjoblom


"BizMark" wrote in message
...

Easy. After selecting your range:

1. Go to the 'Edit' menu
2. Select 'Go To...'
3. Ignore the first dialog that appears and click 'Special...'
4. Check 'Visible Cells Only' (right-hand side, 3rd option from
bottom)
5. Click 'OK'

Then do your Paste/whatever other function you wish to apply only to
the visible cells in the selected range.

Regards,
MB

Dave Peterson Wrote:
I think you'll have to copy and paste in pieces--do each area of the
visible
range separately.

Huber57 wrote:

I have hidden some rows in my workbook. I would like to paste some
data
over these hidden cells and allow the data to skip them.

For example, if I have hidden Columns B and C and I paste 1, 2, 3, 4
(all
from different cells) into a row, 1 should appear in A1, 2 should
appear in
D1, 3 should appear in E1, etc. Do you know how I can skip hidden
rows when
I paste data?

I am using Excel 2003.

Sincerely,

huber 57

--

Dave Peterson



--
BizMark



  #5   Report Post  
Posted to microsoft.public.excel.misc
Huber57
 
Posts: n/a
Default Pasting over hidden columns

The "Go To" function recommended above doesn't work.

Sincerely,

huber57

"Peo Sjoblom" wrote:

Have you really tried this, it certainly does not work for me? Hide columns
B and D, put 1 in H1, 2 in I1 and 3 in J1, copy H1:J1, now select columns
A:E, go to special and select visible cells only, paste the values, what do
you get?


--

Regards,

Peo Sjoblom


"BizMark" wrote in message
...

Easy. After selecting your range:

1. Go to the 'Edit' menu
2. Select 'Go To...'
3. Ignore the first dialog that appears and click 'Special...'
4. Check 'Visible Cells Only' (right-hand side, 3rd option from
bottom)
5. Click 'OK'

Then do your Paste/whatever other function you wish to apply only to
the visible cells in the selected range.

Regards,
MB

Dave Peterson Wrote:
I think you'll have to copy and paste in pieces--do each area of the
visible
range separately.

Huber57 wrote:

I have hidden some rows in my workbook. I would like to paste some
data
over these hidden cells and allow the data to skip them.

For example, if I have hidden Columns B and C and I paste 1, 2, 3, 4
(all
from different cells) into a row, 1 should appear in A1, 2 should
appear in
D1, 3 should appear in E1, etc. Do you know how I can skip hidden
rows when
I paste data?

I am using Excel 2003.

Sincerely,

huber 57

--

Dave Peterson



--
BizMark






  #6   Report Post  
Member
 
Location: London
Posts: 78
Default

You're quite right!
It works IF the source selection is a single cell, and not if the source selection is multiple cell.

You could try the following though, assigning them to a couple of shortcut keys:

'###CODE BEGINS HERE
Public xSel As Range

Sub CopyCustom()
Set xSel = Selection.Cells
End Sub

Sub PasteCustom()
nCell = 0

For Each xCell In Selection.Cells
If Not (xCell.EntireRow.Hidden Or xCell.EntireColumn.Hidden) Then
nCell = nCell + 1
xCell.Value = xSel.Cells(nCell).Value
End If

If nCell = xSel.Cells.Count Then
nCell = 0
End If
Next xCell
End Sub
'###CODE ENDS HERE


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
HIDDEN COLUMNS acp20770 Excel Discussion (Misc queries) 1 December 28th 05 06:46 AM
HIDDEN COLUMNS Jolo Excel Discussion (Misc queries) 0 December 27th 05 07:19 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
excel macros truncating tabs for hidden columns. SharanS Excel Discussion (Misc queries) 0 February 17th 05 05:05 AM
How can I see column headings of hidden columns in Excel before u. Beachcomber Excel Discussion (Misc queries) 10 December 10th 04 01:35 PM


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