Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro step wasn't recorded


Hello...

There is a daily validation process that involves manually going to
each tab in an .XLS file and doing "Cube Analysis"/"Refresh Sheet"
from the main toolbar to refresh the sheets.
This manual refresh operation of each sheet needs to be automated via
a macro, but this step does not show up in the macro after I record it
and save it.
I tried recording a macro going through the manual refresh of each
sheet and the code below is what I received back after saving the
macro, including comments added.

I have a project I inherited that uses Excel Cubes against a SQL
Server 2005 database. I am new to Excel Cubes, learning as I go.
As I am aware, these sheets are simply cubed "reports" showing the
data out of cubed queries.
I cannot locate inside the sheet where the code for the cubed report
is located.

The Excel Cube Analysis add-on tool is installed in my instance of
Excel 2003.

Where you see "Cube Analysis"/"Refresh Sheet" as a comment was where I
refreshed that particular tab.
Those refresh steps did not show up in the macro.
I would like to see the reason why this occurs, and the syntax for
including the refresh step in the macro in my macro.

Thanks.

<begin macro code
Sub mcrValidationCheck1671()
' mcrValidationCheck1671 Macro
' Macro recorded 4/23/2007
' Keyboard Shortcut: Ctrl+Shift+A

'selected the first tab in the workbook
Sheets("1671-1").Select 'selected the first tab in the workbook
Range("B35").Select ' simply selected a cell in this sheet
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-2").Select
Range("AK50").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-3").Select
Range("C51").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-4").Select
Range("C56").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

'save off the entire .xls file as another name...
ChDir "X:\CLA Support\Daily Validation"
ActiveWorkbook.SaveAs Filename:= _
"X:\CLA Support\Daily Validation\1671 04-23-07-333.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub
<end macro code

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Macro step wasn't recorded

To the best of my knowledge Cube Analysis does not have an API allowing you
to get at the functions on the toolbar. That will have to be done manually.
--
HTH...

Jim Thomlinson


" wrote:


Hello...

There is a daily validation process that involves manually going to
each tab in an .XLS file and doing "Cube Analysis"/"Refresh Sheet"
from the main toolbar to refresh the sheets.
This manual refresh operation of each sheet needs to be automated via
a macro, but this step does not show up in the macro after I record it
and save it.
I tried recording a macro going through the manual refresh of each
sheet and the code below is what I received back after saving the
macro, including comments added.

I have a project I inherited that uses Excel Cubes against a SQL
Server 2005 database. I am new to Excel Cubes, learning as I go.
As I am aware, these sheets are simply cubed "reports" showing the
data out of cubed queries.
I cannot locate inside the sheet where the code for the cubed report
is located.

The Excel Cube Analysis add-on tool is installed in my instance of
Excel 2003.

Where you see "Cube Analysis"/"Refresh Sheet" as a comment was where I
refreshed that particular tab.
Those refresh steps did not show up in the macro.
I would like to see the reason why this occurs, and the syntax for
including the refresh step in the macro in my macro.

Thanks.

<begin macro code
Sub mcrValidationCheck1671()
' mcrValidationCheck1671 Macro
' Macro recorded 4/23/2007
' Keyboard Shortcut: Ctrl+Shift+A

'selected the first tab in the workbook
Sheets("1671-1").Select 'selected the first tab in the workbook
Range("B35").Select ' simply selected a cell in this sheet
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-2").Select
Range("AK50").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-3").Select
Range("C51").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

Sheets("1671-4").Select
Range("C56").Select
' <clicked "Cube Analysis"/"Refresh Sheet" from toolbar right here
to refresh this tab

'save off the entire .xls file as another name...
ChDir "X:\CLA Support\Daily Validation"
ActiveWorkbook.SaveAs Filename:= _
"X:\CLA Support\Daily Validation\1671 04-23-07-333.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub
<end macro code


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
Macro Step by Step fak119 Excel Discussion (Misc queries) 2 August 31st 06 08:11 AM
run macro step by step. excel 2003 PBM[_3_] Excel Programming 2 November 19th 05 02:19 PM
shortcut key to see a macro running "step by step" al007 Excel Programming 1 November 10th 05 10:18 PM
running macro step by step different from normal run?? Rinze Smit Excel Programming 10 July 26th 05 03:35 PM
I need step by step instructions to create a macro for 10 imbedde. diana Excel Worksheet Functions 3 January 31st 05 01:56 AM


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

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"