Jump to content

[Help me pleaseeee] i have a question with VBA for Excel


bienda

Recommended Posts

i'm sorry because this is VBA for CAD forum, but i don't know orther forum for excel like here.

so i have a problem with VBA for Excel, help me pleaseeee

 

SetPrintArea1.xls

 

i have a excel file like above and i want to set printares with vba for sheet1 but column is not change and row can be change and reference sheet2: round(B1/B2,0)

 

i have use code: "ActiveSheet.PageSetup.PrintArea = [A1:K1].Resize(Sheet2.[B1]).Address"

 

i want to change B1 into round(B1/B2,0)

What do i must to?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...