Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 Befo=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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying worksheets with formulas in hidden columns | Excel Worksheet Functions | |||
How do I avoid copying data from hidden rows/columns? | Excel Discussion (Misc queries) | |||
Hidden Columns No Longer Hidden after Copying Worksheet? | Excel Discussion (Misc queries) | |||
Copying Regions with Filters/Hidden Columns | Excel Programming | |||
How Can I copy a sheet that has hidden rows without copying the h. | Excel Worksheet Functions |