PC Review


Reply
Thread Tools Rate Thread

Copying sheet with hidden columns

 
 
=?Utf-8?B?Sm9jaw==?=
Guest
Posts: n/a
 
      22nd Aug 2007
Hi,
By using code and a command button, I am creating a new sheet (sheet 2) and
copying the contents of Sheet 1 to it. Works well except that i have formulae
in the hidden columns and they are not being copied to Sheet 2.
How can I get around this?
--
Traa Dy Liooar

Jock
 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      22nd Aug 2007
Hi Jock,

Instead of creating a new sheet and copying cells etc to it; Use the Copy
sheet method.

Right click on the sheet name and select Move or copy and follow it from
there. (You need to check the create copy box to copy)

Record a macro while doing it if you need the VBA code.

Regards,

OssieMac

"Jock" wrote:

> Hi,
> By using code and a command button, I am creating a new sheet (sheet 2) and
> copying the contents of Sheet 1 to it. Works well except that i have formulae
> in the hidden columns and they are not being copied to Sheet 2.
> How can I get around this?
> --
> Traa Dy Liooar
>
> Jock

 
Reply With Quote
 
=?Utf-8?B?Sm9jaw==?=
Guest
Posts: n/a
 
      22nd Aug 2007
Hi OssieMac,
Thanks for the suggestion, however, I already have vba set up which creates
a new sheet, names it and copies the active sheet to it. All works fine
except for the formulae in hidden columns which aren't copied over. The
hidden columns are still hidden, by the way, just with no data.
--
Traa Dy Liooar

Jock


"OssieMac" wrote:

> Hi Jock,
>
> Instead of creating a new sheet and copying cells etc to it; Use the Copy
> sheet method.
>
> Right click on the sheet name and select Move or copy and follow it from
> there. (You need to check the create copy box to copy)
>
> Record a macro while doing it if you need the VBA code.
>
> Regards,
>
> OssieMac
>
> "Jock" wrote:
>
> > Hi,
> > By using code and a command button, I am creating a new sheet (sheet 2) and
> > copying the contents of Sheet 1 to it. Works well except that i have formulae
> > in the hidden columns and they are not being copied to Sheet 2.
> > How can I get around this?
> > --
> > Traa Dy Liooar
> >
> > Jock

 
Reply With Quote
 
Zone
Guest
Posts: n/a
 
      22nd Aug 2007
Hi, Jock!
Are you saying if you unhide the column on the copy and select a cell where
a formula should be, it doesn't show in the formula bar?
James
"Jock" <(E-Mail Removed)> wrote in message
news:64F33D10-AED9-4C4E-A40C-(E-Mail Removed)...
> Hi OssieMac,
> Thanks for the suggestion, however, I already have vba set up which
> creates
> a new sheet, names it and copies the active sheet to it. All works fine
> except for the formulae in hidden columns which aren't copied over. The
> hidden columns are still hidden, by the way, just with no data.
> --
> Traa Dy Liooar
>
> Jock
>
>
> "OssieMac" wrote:
>
>> Hi Jock,
>>
>> Instead of creating a new sheet and copying cells etc to it; Use the Copy
>> sheet method.
>>
>> Right click on the sheet name and select Move or copy and follow it from
>> there. (You need to check the create copy box to copy)
>>
>> Record a macro while doing it if you need the VBA code.
>>
>> Regards,
>>
>> OssieMac
>>
>> "Jock" wrote:
>>
>> > Hi,
>> > By using code and a command button, I am creating a new sheet (sheet 2)
>> > and
>> > copying the contents of Sheet 1 to it. Works well except that i have
>> > formulae
>> > in the hidden columns and they are not being copied to Sheet 2.
>> > How can I get around this?
>> > --
>> > Traa Dy Liooar
>> >
>> > Jock



 
Reply With Quote
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      22nd Aug 2007
Hi Jock,

Does you code look something like this because if it does it should make an
exact duplicate of the original sheet and give it a new name.

Sheets("Sheet1").Copy Before:=Sheets(1)
ActiveSheet.Name = "New Sheet"

If you still have problems then can you post a copy the code you are using.

Regards,

OssieMac


"Jock" wrote:

> Hi OssieMac,
> Thanks for the suggestion, however, I already have vba set up which creates
> a new sheet, names it and copies the active sheet to it. All works fine
> except for the formulae in hidden columns which aren't copied over. The
> hidden columns are still hidden, by the way, just with no data.
> --
> Traa Dy Liooar
>
> Jock
>
>
> "OssieMac" wrote:
>
> > Hi Jock,
> >
> > Instead of creating a new sheet and copying cells etc to it; Use the Copy
> > sheet method.
> >
> > Right click on the sheet name and select Move or copy and follow it from
> > there. (You need to check the create copy box to copy)
> >
> > Record a macro while doing it if you need the VBA code.
> >
> > Regards,
> >
> > OssieMac
> >
> > "Jock" wrote:
> >
> > > Hi,
> > > By using code and a command button, I am creating a new sheet (sheet 2) and
> > > copying the contents of Sheet 1 to it. Works well except that i have formulae
> > > in the hidden columns and they are not being copied to Sheet 2.
> > > How can I get around this?
> > > --
> > > Traa Dy Liooar
> > >
> > > Jock

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop copying hidden columns? Spamlet Microsoft Excel Discussion 2 30th Oct 2010 01:18 AM
Copying worksheets with formulas in hidden columns Brian Microsoft Excel Worksheet Functions 2 14th Aug 2008 10:03 PM
Hidden Columns No Longer Hidden after Copying Worksheet? EV Nelson Microsoft Excel Misc 0 6th Dec 2006 04:25 PM
Copying Regions with Filters/Hidden Columns Maistrye Microsoft Excel Programming 1 21st Aug 2006 06:13 PM
How do I keep hidden columns and rows hidden when copying and pri. =?Utf-8?B?aGVscGxpbmRh?= Microsoft Excel Misc 2 22nd Oct 2004 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:34 AM.