Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Two doubts for Macros

Hi to all;

I've created a Macro and this must do some actions, I've done the most of
them, but there are two that I don't know what code:

1)I need to hide columns with the Macro

2)I need to insert rows with the Macro

If anyone knows any of these codes it would be very great.

Thanks to all;
--
atrep
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Two doubts for Macros

Thypical code for those actions could be:-

Columns("A").EntireColumn.Hidden = True
Rows("13:13").Insert Shift:=xlDown

Mike

"xavi garriga" wrote:

Hi to all;

I've created a Macro and this must do some actions, I've done the most of
them, but there are two that I don't know what code:

1)I need to hide columns with the Macro

2)I need to insert rows with the Macro

If anyone knows any of these codes it would be very great.

Thanks to all;
--
atrep

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Two doubts for Macros

You could have looked in the vba help
rows("1:4").hidden=true
columns("a:d").hidden=true
etc
OR, record a macro while doing to see what happens. Then clean up

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"xavi garriga" wrote in message
...
Hi to all;

I've created a Macro and this must do some actions, I've done the most of
them, but there are two that I don't know what code:

1)I need to hide columns with the Macro

2)I need to insert rows with the Macro

If anyone knows any of these codes it would be very great.

Thanks to all;
--
atrep


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
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 AM
Macros Cincy Excel Discussion (Misc queries) 6 July 5th 06 09:23 PM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
I have doubts about Create Lines Charts Socorro del Carmen Rosas Charts and Charting in Excel 1 September 12th 05 12:02 AM


All times are GMT +1. The time now is 07:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"